more MSLU fixes and moved MSLU stuff into separate file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -998,15 +998,20 @@ bool wxCheckWindowWndProc(WXHWND hWnd, WXFARPROC wndProc)
|
||||
// FIXME: Doesn't handle wnd procs set by SetWindowLong, only these set
|
||||
// with RegisterClass!!
|
||||
|
||||
static wxChar buffer[512];
|
||||
WNDCLASS cls;
|
||||
if ( wxUsingUnicowsDll() )
|
||||
{
|
||||
static wxChar buffer[512];
|
||||
WNDCLASS cls;
|
||||
|
||||
::GetClassName((HWND)hWnd, buffer, 512);
|
||||
::GetClassInfo(wxGetInstance(), buffer, &cls);
|
||||
return wndProc == (WXFARPROC)cls.lpfnWndProc;
|
||||
#else
|
||||
return wndProc == (WXFARPROC)::GetWindowLong((HWND)hWnd, GWL_WNDPROC);
|
||||
::GetClassName((HWND)hWnd, buffer, 512);
|
||||
::GetClassInfo(wxGetInstance(), buffer, &cls);
|
||||
return wndProc == (WXFARPROC)cls.lpfnWndProc;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
return wndProc == (WXFARPROC)::GetWindowLong((HWND)hWnd, GWL_WNDPROC);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user