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:
Václav Slavík
2002-02-17 23:35:18 +00:00
parent 4d90b8de01
commit 136cb3c7a9
5 changed files with 212 additions and 51 deletions

View File

@@ -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);
}
}
// ----------------------------------------------------------------------------