13-14
Dynamic Data Exchange
/*************************************************************
FUNCTION: ClientReceivedData
PURPOSE: Called upon receipt of a WM_DDE_DATA
*************************************************************/
void
ClientReceivedData(HWND hWndDDE, HWND hWndPartnerDDE, LONG
IParam)
{
DDEDATA FAR * lpDDEData;
BOOL
bRelease;
char
szItemName(ITEM_NAME_M1);
/*If this Data is in response to a request for data */
/*clear awaiting flags etc accordingly */
if (GetConvPendingAck(hWndDDE) == REQUEST)
{
SetConvPendingAck(hWndDDE, NONE);
KillTimer(hWndDDE, hWndPartnerDDE);
}
if (!(lpDDEData = (DDEDATA FAR *)GlobalLock(LOWORD(lParam)))
| | (lpDDEData->cfFormat != CF_TEXT))
{
/* Negative ACK */
PostMessage(hWndPartnerDDE,
WM_DDE_ACK,
hWndDDE,
MAKELONG(0, HIWORD(IParam)))
);
}
GlobalGetAtomName(HIWORD(IParam), szItemName,
ITEM_NAME_MAX_SIZE);
Xfer.Data = *(int far *)(IpDDEData->Value);
Xfer.Parameter = FALSE;
/* Clear flag for wait for
parameter to return */
if (IpDDEData->fAckReq)
PostMessage(hWndPartnerDDE,
WM_DDE_ACK,
hWndDDE,
MAKELONG(0x8000, HIWORD(IParam))
);
bRelease = IpDDEData->fRelease;
GlobalUnlock(LOWORD(IParam));
if (bRelease)
GlobalFree(LOWORD(IParam));
return;
}
Содержание -05W
Страница 1: ...TeemTalk 05W 07W 11W User s Guide...
Страница 38: ...2 24 Getting Started Notes...
Страница 58: ...3 20 Keyboard Configuration Notes...
Страница 152: ...8 20 File Transfer Notes...
Страница 162: ...9 10 ICL FTF File Transfer Notes...
Страница 324: ...13 32 Dynamic Data Exchange Text1 i 12 LinkItem 0 i 80 Text1 i 12 LinkMode 1 Next i End If End Sub...
Страница 336: ...C 6 Key Reference Numbers Notes...
Страница 360: ...E 16 Host Command Summary Notes...
Страница 370: ...Index 10 Index X XMODEM 8 1 XMODEM 1K 8 1 Y YMODEM Batch 8 2 Z ZMODEM 8 2 Zoom Button 2 17...