X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..c2bbeff0048b6f02bf1ef41edc6c7a3ce148f907:/include/wx/msw/minifram.h?ds=inline 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: