|
- //发命令前加按了两个ESCAPE
- void g采用SendCommand(ACHAR *cmd)
- {
- HWND wnd;
- ACHAR cp[3];
- wnd = adsw采用acadMainWnd();
- if(!wnd) return;
- COPYDATASTRUCT cmddata;
- cp[0] = VK采用ESCAPE;
- cp[1] = VK采用ESCAPE;
- cp[2] = NULL;
- cmddata.dwData = (DWORD)1;
- cmddata.cbData = (DWORD)采用tcslen(cp)+1;
- cmddata.lpData = cp;
- SendMessage(wnd,WM采用COPYDATA,(WPARAM)cp,(LPARAM)&cmddata);
- cmddata.dwData = (DWORD)1;
- cmddata.cbData = (DWORD)采用tcslen(cmd)+1;
- cmddata.lpData = cmd;
- SendMessage(wnd,WM采用COPYDATA,(WPARAM)wnd,(LPARAM)&cmddata);
- }
复制代码 |
|