[每日一码] 发送命令前按两个ESCAPE
//发命令前加按了两个ESCAPEvoid g采用SendCommand(ACHAR *cmd)
{
HWND wnd;
ACHAR cp;
wnd = adsw采用acadMainWnd();
if(!wnd) return;
COPYDATASTRUCT cmddata;
cp = VK采用ESCAPE;
cp = VK采用ESCAPE;
cp = 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);
}
页:
[1]