TA的每日心情 | 开心 昨天 06:36 |
---|
签到天数: 15 天 [LV.4]偶尔看看III
管理员
- 积分
- 1308
|
- //发命令前加按了两个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);
- }
复制代码 |
|