Applied patch [ 642174 ] Stop TOOL_WINDOWS stealing focus

When frames with the wxFRAME_TOOL_WINDOW
style ( i.e. a floating toolbar frame) is shown it is
activated, taking focus from the main application
window. This patch stops frames with the
wxFRAME_TOOL_WINDOW from being activated when
shown.

Scott Pleiter


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-09 10:31:17 +00:00
parent 48aa18c000
commit 84cff96585

View File

@@ -517,7 +517,10 @@ bool wxTopLevelWindowMSW::Show(bool show)
} }
else // just show else // just show
{ {
nShowCmd = SW_SHOW; if ( GetWindowStyle() & wxFRAME_TOOL_WINDOW )
nShowCmd = SW_SHOWNA;
else
nShowCmd = SW_SHOW;
} }
} }
else // hide else // hide