1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/colordlg.h
3 // Purpose: wxColourDialog class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COLORDLG_H_
12 #define _WX_COLORDLG_H_
14 #include "wx/dialog.h"
16 // ----------------------------------------------------------------------------
17 // wxColourDialog: dialog for choosing a colours
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxColourDialog
: public wxDialog
23 wxColourDialog() { Init(); }
24 wxColourDialog(wxWindow
*parent
, wxColourData
*data
= NULL
)
31 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
33 wxColourData
& GetColourData() { return m_colourData
; }
35 // override some base class virtuals
36 virtual void SetTitle(const wxString
& title
);
37 virtual wxString
GetTitle() const;
39 virtual int ShowModal();
41 // wxMSW-specific implementation from now on
42 // -----------------------------------------
44 // called from the hook procedure on WM_INITDIALOG reception
45 virtual void MSWOnInitDone(WXHWND hDlg
);
48 // common part of all ctors
51 #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
52 virtual void DoGetPosition( int *x
, int *y
) const;
53 virtual void DoGetSize(int *width
, int *height
) const;
54 virtual void DoGetClientSize(int *width
, int *height
) const;
55 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);
56 virtual void DoCentre(int dir
);
57 #endif // !(__SMARTPHONE__ && __WXWINCE__)
59 wxColourData m_colourData
;
62 // indicates that the dialog should be centered in this direction if non 0
63 // (set by DoCentre(), used by MSWOnInitDone())
66 // true if DoMoveWindow() had been called
70 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog
)
73 #endif // _WX_COLORDLG_H_