MFC 發送模擬雙擊消息(PostMessage)

一、用PostMessagethis CRect rect; CWnd *pwnd = (CWnd *)GetDlgItem(IDC_BUTTON2); pwnd->GetWindowRect(rect); SetCursorPos(rect.left+5, rect.top+5); ::PostMessage(this->m_hWnd, WM_COMMAND, MAKEWPARAM(ID
相關文章
相關標籤/搜索