16,472
社区成员
发帖
与我相关
我的任务
分享
HWND step3_5 = GetWindow(step3_4,GW_HWNDNEXT);//4060e
CWnd *pWnd=CWnd::FromHandle(hChild);
pWnd->ShowWindow(SW_SHOW);
pWnd->SetWindowPos(&CWnd::wndTopMost ,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE |SWP_SHOWWINDOW);
pWnd->SetFocus();//
BringWindowToTop(hChild);
::PostMessage(step3_5,BM_CLICK,0,0);
HWND hWndButton = ....; // 按钮的HWND窗口句柄
UINT nId = GetDlgCtrlD(hWndButton);
PostMessage(GetParent(hWndButton), WM_COMMAND, MAKEWPRAM(nId, BN_CLICKED), LPARAM(hWndButton));