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 #include "wx/dialog.h"
17 #include "wx/cmndata.h"
19 // ----------------------------------------------------------------------------
20 // wxColourDialog: dialog for choosing a colours
21 // ----------------------------------------------------------------------------
23 class WXDLLEXPORT wxColourDialog
: public wxDialog
27 wxColourDialog(wxWindow
*parent
, wxColourData
*data
= NULL
);
29 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
31 wxColourData
& GetColourData() { return m_colourData
; }
33 // override some base class virtuals
34 virtual void SetTitle(const wxString
& title
);
35 virtual wxString
GetTitle() const;
37 virtual int ShowModal();
39 virtual void DoGetPosition( int *x
, int *y
) const;
42 virtual void DoGetSize(int *width
, int *height
) const;
43 virtual void DoGetClientSize(int *width
, int *height
) const;
44 virtual void DoSetSize(int x
, int y
,
45 int width
, int height
,
46 int sizeFlags
= wxSIZE_AUTO
);
48 wxColourData m_colourData
;
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog
)