process WM_ACTIVATEAPP in wxMSW too, not only wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-07-02 13:45:53 +00:00
parent ae0eb25f8d
commit d1c8069261

View File

@ -2076,22 +2076,10 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
}
break;
#if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
case WM_ACTIVATEAPP:
wxTheApp->SetActive(wParam != 0, FindFocus());
break;
case WM_NCHITTEST:
// we shouldn't allow the windows which don't want to get focus to
// get it
if ( !AcceptsFocus() )
{
rc.result = HTTRANSPARENT;
processed = TRUE;
}
break;
#endif // __WXUNIVERSAL__
case WM_ACTIVATE:
{
WXWORD state, minimized;
@ -2463,6 +2451,18 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
}
break;
#endif // __WIN32__
#ifdef __WXUNIVERSAL__
case WM_NCHITTEST:
// we shouldn't allow the windows which don't want to get focus to
// get it
if ( !AcceptsFocus() )
{
rc.result = HTTRANSPARENT;
processed = TRUE;
}
break;
#endif // __WXUNIVERSAL__
}
if ( !processed )