use SetForegroundWindow instead of BringWindowToTop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -446,7 +446,11 @@ bool wxWindow::Show(bool show)
|
|||||||
// Raise the window to the top of the Z order
|
// Raise the window to the top of the Z order
|
||||||
void wxWindow::Raise()
|
void wxWindow::Raise()
|
||||||
{
|
{
|
||||||
|
#ifdef __WIN16__
|
||||||
::BringWindowToTop(GetHwnd());
|
::BringWindowToTop(GetHwnd());
|
||||||
|
#else // Win32
|
||||||
|
::SetForegroundWindow(GetHwnd());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lower the window to the bottom of the Z order
|
// Lower the window to the bottom of the Z order
|
||||||
|
Reference in New Issue
Block a user