Fix for bug [ 744199 ] wxBringWindowToTop, child window z-order
A child window should only have it's z-order raised, not the parent window brought to the front. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -217,15 +217,13 @@ static inline void wxBringWindowToTop(HWND hwnd)
|
||||
|
||||
// activate (set focus to) specified window
|
||||
::SetFocus(hwnd);
|
||||
#endif
|
||||
|
||||
// raise top level parent to top of z order
|
||||
::SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||
#else // !__WXMICROWIN__
|
||||
if ( !::BringWindowToTop(hwnd) )
|
||||
if (!::SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE))
|
||||
{
|
||||
wxLogLastError(_T("BringWindowToTop"));
|
||||
wxLogLastError(_T("SetWindowPos"));
|
||||
}
|
||||
#endif // __WXMICROWIN__/!__WXMICROWIN__
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user