]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/minifram.h
Icons fetched from wxMimeTypesManager did not get the width/height of
[wxWidgets.git] / include / wx / msw / minifram.h
index 116371e281381f01ae8eaa788e559eed63e0e2ae..1e34b5d88d821b14496651251af428104743cc0c 100644 (file)
@@ -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: