X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a54c4a8cd06b1e7b9b1e14a82e4a421303972eb..904ec517d32ae8ed7b45bf69d94892eca0eac05a:/include/wx/msw/dialog.h diff --git a/include/wx/msw/dialog.h b/include/wx/msw/dialog.h index b92ca7c103..0e4dce9d62 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) @@ -89,8 +89,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,8 +103,11 @@ public: // Responds to colour changes void OnSysColourChanged(wxSysColourChangedEvent& event); - // IMPLEMENTATION - 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); @@ -121,10 +123,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() };