X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..c8023fed763ccd02964dc5b5201371b7d3cfda55:/include/wx/msw/minifram.h diff --git a/include/wx/msw/minifram.h b/include/wx/msw/minifram.h index 116371e281..1e34b5d88d 100644 --- a/include/wx/msw/minifram.h +++ b/include/wx/msw/minifram.h @@ -32,7 +32,10 @@ public: long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, const wxString& name = wxFrameNameStr) { - Create(parent, id, title, pos, size, style | wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT, name); + Create(parent, id, title, pos, size, + style | + wxFRAME_TOOL_WINDOW | + (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name); } protected: