]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/colordlg.h
no changes, just update the copyright in the header
[wxWidgets.git] / include / wx / msw / colordlg.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
f6bcfd97 2// Name: wx/msw/colordlg.h
2bda0e17
KB
3// Purpose: wxColourDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_COLORDLG_H_
13#define _WX_COLORDLG_H_
2bda0e17 14
b73e73f9 15#include "wx/defs.h"
2bda0e17
KB
16#include "wx/dialog.h"
17#include "wx/cmndata.h"
18
f6bcfd97
BP
19// ----------------------------------------------------------------------------
20// wxColourDialog: dialog for choosing a colours
21// ----------------------------------------------------------------------------
2bda0e17 22
53a2db12 23class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
2bda0e17 24{
bbcdf8bc 25public:
82c63878
VZ
26 wxColourDialog() { Init(); }
27 wxColourDialog(wxWindow *parent, wxColourData *data = NULL)
28 {
29 Init();
30
31 Create(parent, data);
32 }
bbcdf8bc
JS
33
34 bool Create(wxWindow *parent, wxColourData *data = NULL);
35
f6bcfd97
BP
36 wxColourData& GetColourData() { return m_colourData; }
37
38 // override some base class virtuals
39 virtual void SetTitle(const wxString& title);
ba14d986 40 virtual wxString GetTitle() const;
f6bcfd97
BP
41
42 virtual int ShowModal();
bbcdf8bc 43
82c63878
VZ
44 // wxMSW-specific implementation from now on
45 // -----------------------------------------
46
47 // called from the hook procedure on WM_INITDIALOG reception
48 virtual void MSWOnInitDone(WXHWND hDlg);
49
bbcdf8bc 50protected:
82c63878
VZ
51 // common part of all ctors
52 void Init();
53
54#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
6f02a879 55 virtual void DoGetPosition( int *x, int *y ) const;
f6bcfd97
BP
56 virtual void DoGetSize(int *width, int *height) const;
57 virtual void DoGetClientSize(int *width, int *height) const;
82c63878
VZ
58 virtual void DoMoveWindow(int x, int y, int width, int height);
59 virtual void DoCentre(int dir);
60#endif // !(__SMARTPHONE__ && __WXWINCE__)
f6bcfd97 61
bbcdf8bc 62 wxColourData m_colourData;
f6bcfd97
BP
63 wxString m_title;
64
82c63878
VZ
65 // indicates that the dialog should be centered in this direction if non 0
66 // (set by DoCentre(), used by MSWOnInitDone())
67 int m_centreDir;
68
69 // true if DoMoveWindow() had been called
70 bool m_movedWindow;
71
f63e3ebb 72
fc7a2a60 73 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
2bda0e17
KB
74};
75
82c63878 76#endif // _WX_COLORDLG_H_