X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/721b32e05823b7b7356f9a7a99f7d0af457dc5f3..92049cd473c81fbce934e71796b2d841d5e605fa:/include/wx/msw/dialog.h diff --git a/include/wx/msw/dialog.h b/include/wx/msw/dialog.h index c156d77e1c..74a07e5685 100644 --- a/include/wx/msw/dialog.h +++ b/include/wx/msw/dialog.h @@ -18,7 +18,7 @@ #include "wx/panel.h" -WXDLLEXPORT_DATA(extern const char*) wxDialogNameStr; +WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr; // Dialog boxes class WXDLLEXPORT wxDialog : public wxPanel @@ -60,6 +60,9 @@ 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); @@ -104,9 +107,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 +127,13 @@ 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 + int m_returnCode; + DECLARE_EVENT_TABLE() };