FindWindowEx()函数为什么总是返回空? 30
voidCMy0803Dlg::OnBnClickedFind(){HWNDhmainwnd=::AfxGetApp()->GetMainWnd()->GetSafeHw...
void CMy0803Dlg::OnBnClickedFind()
{
HWND hmainwnd=::AfxGetApp()->GetMainWnd()->GetSafeHwnd();
CWnd *pMainWnd = ::AfxGetApp()->GetMainWnd()->
FindWindowExW(hmainwnd,NULL,_T("Button"),_T("sure")) ;
if(pMainWnd == NULL)
{
::AfxMessageBox(_T("空"),MB_OK,0);
}
}
为什么每次都返回空,我把class name 改成NULL也是这个结果 展开
{
HWND hmainwnd=::AfxGetApp()->GetMainWnd()->GetSafeHwnd();
CWnd *pMainWnd = ::AfxGetApp()->GetMainWnd()->
FindWindowExW(hmainwnd,NULL,_T("Button"),_T("sure")) ;
if(pMainWnd == NULL)
{
::AfxMessageBox(_T("空"),MB_OK,0);
}
}
为什么每次都返回空,我把class name 改成NULL也是这个结果 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询