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
}
else // just show
{
- nShowCmd = SW_SHOW;
+ if ( GetWindowStyle() & wxFRAME_TOOL_WINDOW )
+ nShowCmd = SW_SHOWNA;
+ else
+ nShowCmd = SW_SHOW;
}
}
else // hide