Xerox -07W & -11W Printer User Manual


 
13-16
Dynamic Data Exchange
Example 2
Redefine the Answerback to the given string.
SetAnswerback(LPSTR szAnswer, int iAnsLen)
{
ChangeSetting(
hWnd,
hWndPartner,
IDM_EMUL,
ANSSTRING,
iAnsLen,
szAnswer,
iAnsLen
);
}
Example 3
Set the keyboard macro assigned to the Shift + F6 key sequence to Hello World.
Note: The highlighted characters Slave in
hWndSlaveDDE
are
only applicable to TeemTalk for Windows 3.1. They are not
to be included when using Windows 95 or NT.
.
.
SetKbdMacro(141, "Hello World", 11);
.
.
SetKbdMacro(
int iKeyMacro, /* Key to be redefined */
LPSTR szMacroString, /* Pointer to redefinition string */
int iMacroLen /* Max allowed Length of szMacroString */
)
{
ChangeSetting(
hWnd,
hWndPartner,
IDM_MACROS,
NKEYSTRING,
iKeyIndex,
szMacroString,
iMacroLen
);
}
void