X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32c1cda24418c225fa2cff4b1416f7a3d62c88b1..67b81440f079f88e6202a199fd5763af73bbac0f:/include/wx/msw/dialog.h diff --git a/include/wx/msw/dialog.h b/include/wx/msw/dialog.h index 74a07e5685..f7a07592f8 100644 --- a/include/wx/msw/dialog.h +++ b/include/wx/msw/dialog.h @@ -21,7 +21,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr; // Dialog boxes -class WXDLLEXPORT wxDialog : public wxPanel +class WXDLLEXPORT wxDialog : public wxDialogBase { DECLARE_DYNAMIC_CLASS(wxDialog) @@ -60,9 +60,6 @@ public: ~wxDialog(); - void SetReturnCode(int returnCode) { m_returnCode = returnCode; } - int GetReturnCode() const { return m_returnCode; } - virtual bool Destroy(); virtual void DoSetClientSize(int width, int height); @@ -80,6 +77,8 @@ public: virtual bool IsIconized() const; void Fit(); + virtual bool IsTopLevel() const { return TRUE; } + void SetTitle(const wxString& title); wxString GetTitle() const ; @@ -92,8 +91,7 @@ public: void SetModal(bool flag); virtual void Centre(int direction = wxBOTH); - virtual bool IsModal() const - { return ((GetWindowStyleFlag() & wxDIALOG_MODAL) == wxDIALOG_MODAL); } + virtual bool IsModal() const; // For now, same as Show(TRUE) but returns return code virtual int ShowModal(); @@ -132,8 +130,7 @@ private: WXHWND m_hwndToolTip; #endif // tooltips - int m_returnCode; - +private: DECLARE_EVENT_TABLE() };