13-17
Dynamic Data Exchange
ChangeSetting(
HWND hWnd
Slave
DDE,
HWND hWndPartnerDDE,
int MenuID,
int DataGroup,
int iValue,
LPSTR szChar,
int iCharCount
)
{
DWORD lSetting;
char buf[16];
lSetting = MAKELONG(DataGroup,MenuID);
Itoa(iSetting,buf,10);
SendPoke(hWnd
Slave
DDE, hWndPartnerDDE, buf, iValue, szChar,
iCharCount);
}
This time, the call to
SendPoke
assumes that all used strings are
NULL
terminated
therefore allowing the
iValue
parameter to reference an integer setting, as opposed to
the byte count as done previously. This is done to allow keyboard macros to be
wholly defined whilst at the same time limiting the number of functions required to
implement the Slave link.
Terminating The Slave DDE Link
To terminate the link requires a
WM_DDE_TERMINATE
message to be sent to
TeemTalk.
TerminateSlaveLink()
{
PostMessage(hWndPartner,WM_DDE_TERMINATE, hWnd, 0L);
}
Once received and actioned, TeemTalk will return to its normal state.
It is worth noting that any settings changed whilst in Slave mode will still apply. It is
therefore important that any parameters changed during the life of the slave link be
reset back to the values that were set prior to entry. This is best done by ensuring that
for every
ChangeParameter
call, a corresponding
GetParameter
call is made
beforehand.
Содержание -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...