#include "wx/panel.h"
-WXDLLEXPORT_DATA(extern const char*) wxDialogNameStr;
+WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
// Dialog boxes
class WXDLLEXPORT wxDialog : public wxPanel
~wxDialog();
+ void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
+ int GetReturnCode() const { return m_returnCode; }
+
virtual bool Destroy();
virtual void DoSetClientSize(int width, int height);
// 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);
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()
};