小弟向查找窗体里面的按钮 用了EnmuChildWindow ,报错了!请大家帮帮忙!
biu 2003-05-17 02:37:17 HWND hWnd = ::FindWindow(NULL,title);
EnumChildWindows(hWnd,EnmuChildProc,0);
BOOL __stdcall CALLBACK CFdsfdsafDlg::EnmuChildProc( HWND hWnd, LPARAM lParam )
{
return TRUE;
char * aa=new char[21];
::GetWindowText(hWnd,aa,20);
if (aa =="发送(&S)")
{
hButton = hWnd;
return FALSE;
}
}
报告的错误是
'EnumChildWindows' : cannot convert parameter 2 from 'int (struct HWND__ *,long)' to 'int (__stdcall *)(struct HWND__ *,long)'
不知道应该怎么改 ?????