请教FindWindow失败的问题
void CDialogViewDlg::OnButton1()
{
// TODO: Add your control notification handler code here
HWND hWnd;
hWnd = ::FindWindow(_T("CDialogViewDlg"),_T("DialogView"));
if(hWnd==FALSE)
{
AfxMessageBox("失败");
return;
}
}
hWnd一直返回0x00000000,请问这样用是错在什么地方,如何修改?
谢谢。