From: Vadim Zeitlin Date: Sun, 24 Oct 2010 22:41:24 +0000 (+0000) Subject: Don't activate the window when updating its styles in wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58331be29ab14a2067a9b20e49330bbccc1194ca Don't activate the window when updating its styles in wxMSW. Add SWP_NOACTIVATE to the flags used by wxWindow::MSWUpdateStyle(). This allows to change the style of a window without necessarily activating it. Closes #11560. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index e7f505bf7b..64e7ce2c52 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1433,7 +1433,8 @@ void wxWindowMSW::MSWUpdateStyle(long flagsOld, long exflagsOld) exstyleReal & WS_EX_TOPMOST ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, - SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED) ) + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | + SWP_FRAMECHANGED) ) { wxLogLastError(wxT("SetWindowPos")); }