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