// global data
//-----------------------------------------------------------------------------
-extern const char *wxDialogNameStr;
+extern const wxChar *wxDialogNameStr;
//-----------------------------------------------------------------------------
// wxDialog
DECLARE_DYNAMIC_CLASS(wxDialog)
public:
- wxDialog();
+ wxDialog() { Init(); }
wxDialog( wxWindow *parent, wxWindowID id,
const wxString &title,
const wxPoint &pos = wxDefaultPosition,
virtual void Maximize() { }
virtual void Restore() { }
+ void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
+ int GetReturnCode() const { return m_returnCode; }
+
// implementation
virtual void GtkOnSize( int x, int y, int width, int height );
wxIcon m_icon;
protected:
+ // common part of all ctors
+ void Init();
+
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
private:
+ int m_returnCode;
+
DECLARE_EVENT_TABLE()
};