#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)
~wxDialog();
- void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
- int GetReturnCode() const { return m_returnCode; }
-
virtual bool Destroy();
virtual void DoSetClientSize(int width, int height);
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();
WXHWND m_hwndToolTip;
#endif // tooltips
- int m_returnCode;
-
+private:
DECLARE_EVENT_TABLE()
};