X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/721b32e05823b7b7356f9a7a99f7d0af457dc5f3..3f2711d5c119962a9fcb7198ebf351930d646e23:/include/wx/msw/dialog.h?ds=sidebyside diff --git a/include/wx/msw/dialog.h b/include/wx/msw/dialog.h index c156d77e1c..f7a07592f8 100644 --- a/include/wx/msw/dialog.h +++ b/include/wx/msw/dialog.h @@ -18,10 +18,10 @@ #include "wx/panel.h" -WXDLLEXPORT_DATA(extern const char*) wxDialogNameStr; +WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr; // Dialog boxes -class WXDLLEXPORT wxDialog : public wxPanel +class WXDLLEXPORT wxDialog : public wxDialogBase { DECLARE_DYNAMIC_CLASS(wxDialog) @@ -77,6 +77,8 @@ public: virtual bool IsIconized() const; void Fit(); + virtual bool IsTopLevel() const { return TRUE; } + void SetTitle(const wxString& title); wxString GetTitle() const ; @@ -89,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(); @@ -104,9 +105,11 @@ public: // Responds to colour changes void OnSysColourChanged(wxSysColourChangedEvent& event); - // IMPLEMENTATION - virtual bool MSWProcessMessage(WXMSG* pMsg); - virtual bool MSWOnClose(); + // implementation + // -------------- + + long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); + virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, WXUINT message, WXWPARAM wParam, WXLPARAM lParam); @@ -122,10 +125,12 @@ protected: bool m_modalShowing; WXHWND m_hwndOldFocus; // the window which had focus before we were shown +private: #if wxUSE_TOOLTIPS WXHWND m_hwndToolTip; #endif // tooltips +private: DECLARE_EVENT_TABLE() };