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
相关文章
相关标签/搜索