1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/colordlg.h
3 // Purpose: wxColourDialog class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COLORDLG_H_
13 #define _WX_COLORDLG_H_
16 #pragma interface "colordlg.h"
20 #include "wx/dialog.h"
21 #include "wx/cmndata.h"
23 // ----------------------------------------------------------------------------
24 // wxColourDialog: dialog for choosing a colours
25 // ----------------------------------------------------------------------------
27 class WXDLLEXPORT wxColourDialog
: public wxDialog
31 wxColourDialog(wxWindow
*parent
, wxColourData
*data
= NULL
);
33 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
35 wxColourData
& GetColourData() { return m_colourData
; }
37 // override some base class virtuals
38 virtual void SetTitle(const wxString
& title
);
39 virtual wxString
GetTitle() const;
41 virtual int ShowModal();
43 virtual void DoGetPosition( int *x
, int *y
) const;
46 virtual void DoGetSize(int *width
, int *height
) const;
47 virtual void DoGetClientSize(int *width
, int *height
) const;
48 virtual void DoSetSize(int x
, int y
,
49 int width
, int height
,
50 int sizeFlags
= wxSIZE_AUTO
);
52 wxColourData m_colourData
;
57 DECLARE_DYNAMIC_CLASS(wxColourDialog
)