X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b225f65995e9eccefe9b502568b1b8e40629cd1a..31a06b07cce898a22d0ca3992501e85da9c22f13:/src/msw/window.cpp?ds=sidebyside diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5630b738c6..3ada51d847 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2745,7 +2745,7 @@ bool wxWindowMSW::MSWCreate(const wxChar *wclass, } else // !popup { - if ( (isChild || (style & WS_POPUPWINDOW)) && parent ) + if ( (isChild || HasFlag(wxFRAME_TOOL_WINDOW)) && parent ) { // this is either a normal child window or a top level window with // wxFRAME_TOOL_WINDOW style (see below) @@ -2758,8 +2758,7 @@ bool wxWindowMSW::MSWCreate(const wxChar *wclass, // style: we should use NULL parent HWND for it or it would be // always on top of its parent which is not what we usually want // (in fact, we only want it for frames with the special - // wxFRAME_TOOL_WINDOW style translated into WS_POPUPWINDOW we test - // against above) + // wxFRAME_TOOL_WINDOW as above) hParent = NULL; }