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:
parent
48aa18c000
commit
84cff96585
@ -517,6 +517,9 @@ bool wxTopLevelWindowMSW::Show(bool show)
|
||||
}
|
||||
else // just show
|
||||
{
|
||||
if ( GetWindowStyle() & wxFRAME_TOOL_WINDOW )
|
||||
nShowCmd = SW_SHOWNA;
|
||||
else
|
||||
nShowCmd = SW_SHOW;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user