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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user