]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/popupwin.h
Applied patch from SF on menu command not blocked
[wxWidgets.git] / include / wx / mgl / popupwin.h
index 8ce1965614974c549905a2897942068fbd71a362..fd56a9b5cb336f121df88f2faf4b1737a67a6f2a 100644 (file)
@@ -20,14 +20,15 @@ class WXDLLEXPORT wxPopupWindow : public wxPopupWindowBase
 public:
     wxPopupWindow() { }
 
-    wxPopupWindow(wxWindow *parent) { (void)Create(parent); }
+    wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
+        { (void)Create(parent, flags); }
 
     bool Create(wxWindow *parent, int flags = wxBORDER_NONE)
     {
         return wxPopupWindowBase::Create(parent) &&
                wxWindow::Create(parent, -1,
                                 wxDefaultPosition, wxDefaultSize,
-                                flags & wxBORDER_MASK);
+                                (flags & wxBORDER_MASK) | wxPOPUP_WINDOW);
     }
 };