fixes for Raise() to work correctly with both top level and child windows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-08-20 23:02:27 +00:00
parent 5d987909a8
commit c48926e149
3 changed files with 34 additions and 30 deletions

View File

@@ -347,6 +347,16 @@ bool wxFrameMSW::Show(bool show)
return TRUE;
}
void wxFrameMSW::Raise()
{
#ifdef __WIN16__
// no SetForegroundWindow() in Win16
wxFrameBase::Raise();
#else // Win32
::SetForegroundWindow(GetHwnd());
#endif // Win16/32
}
void wxFrameMSW::Iconize(bool iconize)
{
DoShowWindow(iconize ? SW_MINIMIZE : SW_RESTORE);