don't use WS_POPUP for frames using wxFRAME_TOOL_WINDOW style (patch 1107460)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -166,13 +166,9 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const
|
|||||||
// first select the kind of window being created
|
// first select the kind of window being created
|
||||||
//
|
//
|
||||||
// note that if we don't set WS_POPUP, Windows assumes WS_OVERLAPPED and
|
// note that if we don't set WS_POPUP, Windows assumes WS_OVERLAPPED and
|
||||||
// creates a window with both caption and border, hence we also test it
|
// creates a window with both caption and border, hence we need to use
|
||||||
// below in some other cases
|
// WS_POPUP in a few cases just to avoid having caption/border which we
|
||||||
if ( style & wxFRAME_TOOL_WINDOW )
|
// don't want
|
||||||
{
|
|
||||||
msflags |= WS_POPUP;
|
|
||||||
}
|
|
||||||
//else: WS_OVERLAPPED is 0 anyhow, so it is on by default
|
|
||||||
|
|
||||||
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||||
// border and caption styles
|
// border and caption styles
|
||||||
|
Reference in New Issue
Block a user