Xerox -05W User Manual page 314

Xerox user's guide printer -05w, -07w & -11w
Table of Contents

Advertisement

Dynamic Data Exchange
This needs to be extracted from the DDEDATA message in order to read the
appropriate values. One way of doing this is shown below.
/
****************************************************************
FUNCTION: ClientReceiveData
PURPOSE: Called when client application receives WM_DDE_DATA message.
****************************************************************/
void
ClientReceiveData(hwndClientDDE, hwndServerDDE, lParam)
HWND hwndClientDDE;
HWND hwndServerDDE;
LONG lParam;
{
DDEDATA FAR * lpDDEData;
LPDDE_CURSINF lpDdeCursInf;
BOOL
BOOL
if (!(lpDDEData = (DDEDATA FAR *)GlobalLock(LOWORD(lParam))) ||
{
PostMessage(hwndServerDDE,
WM_DDE_ACK, hwndClientDDE,
MAKELONG(0, HIWORD(lParam))); /* Negative ACK */
}
else
{
lpDdeCursInf = (LPDDE_CURSINF)lpDDEData->Value;
CurrentCursRow =
CurrentCursCol =
if (lpDDEData->fAckReq)
{
/* return ACK or NACK */
PostMessage(hwndServerDDE,
}
bRelease = lpDDEData->fRelease;
GlobalUnlock(LOWORD(lParam));
if (bRelease)
GlobalFree(LOWORD(lParam));
}
return;
}
13-22
bRelease;
bAck;
(lpDDEData->cfFormat != CF_TEXT))
/* Read Row/Column values in static vars */
lpDdeCursInf->Row;
lpDdeCursInf->Col;
WM_DDE_ACK,
hwndClientDDE,
MAKELONG( (bAck? 0x8000:0),
HIWORD(lParam)));

Advertisement

Table of Contents
loading

This manual is also suitable for:

-07w & -11w

Table of Contents