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_
15 #include "wx/dialog.h"
17 // ----------------------------------------------------------------------------
18 // wxColourDialog: dialog for choosing a colours
19 // ----------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxColourDialog
: public wxDialog
24 wxColourDialog() { Init(); }
25 wxColourDialog(wxWindow
*parent
, wxColourData
*data
= NULL
)
32 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
34 wxColourData
& GetColourData() { return m_colourData
; }
36 // override some base class virtuals
37 virtual void SetTitle(const wxString
& title
);
38 virtual wxString
GetTitle() const;
40 virtual int ShowModal();
42 // wxMSW-specific implementation from now on
43 // -----------------------------------------
45 // called from the hook procedure on WM_INITDIALOG reception
46 virtual void MSWOnInitDone(WXHWND hDlg
);
49 // common part of all ctors
52 #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
53 virtual void DoGetPosition( int *x
, int *y
) const;
54 virtual void DoGetSize(int *width
, int *height
) const;
55 virtual void DoGetClientSize(int *width
, int *height
) const;
56 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);
57 virtual void DoCentre(int dir
);
58 #endif // !(__SMARTPHONE__ && __WXWINCE__)
60 wxColourData m_colourData
;
63 // indicates that the dialog should be centered in this direction if non 0
64 // (set by DoCentre(), used by MSWOnInitDone())
67 // true if DoMoveWindow() had been called
71 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog
)
74 #endif // _WX_COLORDLG_H_