X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef0e92205a01c7d0ca6f381cc690cb5d4fa595c9..8602802568e2dcd29298c0d802d7c44fd231845b:/include/wx/dialog.h diff --git a/include/wx/dialog.h b/include/wx/dialog.h index a8160033fd..4951bc72b2 100644 --- a/include/wx/dialog.h +++ b/include/wx/dialog.h @@ -91,7 +91,7 @@ public: int GetEscapeId() const { return m_escapeId; } // Returns the parent to use for modal dialogs if the user did not specify it - // explicitly + // explicitly. If parent argument is NULL, use GetParent() by default. wxWindow *GetParentForModalDialog(wxWindow *parent = NULL) const; #if wxUSE_STATTEXT // && wxUSE_TEXTCTRL @@ -211,6 +211,10 @@ private: // common part of all ctors void Init(); + // helper of GetParentForModalDialog(): returns the passed in window if it + // can be used as our parent or NULL if it can't + wxWindow *CheckIfCanBeUsedAsParent(wxWindow *parent) const; + // handle Esc key presses void OnCharHook(wxKeyEvent& event); @@ -224,7 +228,7 @@ private: void OnSysColourChanged(wxSysColourChangedEvent& event); - DECLARE_NO_COPY_CLASS(wxDialogBase) + wxDECLARE_NO_COPY_CLASS(wxDialogBase); DECLARE_EVENT_TABLE() };