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;
}
Summary of Contents for -05W
Page 1: ...TeemTalk 05W 07W 11W User s Guide...
Page 38: ...2 24 Getting Started Notes...
Page 58: ...3 20 Keyboard Configuration Notes...
Page 152: ...8 20 File Transfer Notes...
Page 162: ...9 10 ICL FTF File Transfer Notes...
Page 336: ...C 6 Key Reference Numbers Notes...
Page 360: ...E 16 Host Command Summary Notes...
Page 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...