]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/timectrl.h
Optionally allow showing tooltips for disabled ribbon buttons.
[wxWidgets.git] / include / wx / msw / timectrl.h
CommitLineData
569c7d8c
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/timectrl.h
3// Purpose: wxTimePickerCtrl for Windows.
4// Author: Vadim Zeitlin
5// Created: 2011-09-22
6// RCS-ID: $Id$
7// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwindows.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MSW_TIMECTRL_H_
12#define _WX_MSW_TIMECTRL_H_
13
14// ----------------------------------------------------------------------------
15// wxTimePickerCtrl
16// ----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_ADV wxTimePickerCtrl : public wxTimePickerCtrlBase
19{
20public:
21 // ctors
22 wxTimePickerCtrl() { }
23
24 wxTimePickerCtrl(wxWindow *parent,
25 wxWindowID id,
26 const wxDateTime& dt = wxDefaultDateTime,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = wxTP_DEFAULT,
30 const wxValidator& validator = wxDefaultValidator,
31 const wxString& name = wxTimePickerCtrlNameStr)
32 {
33 Create(parent, id, dt, pos, size, style, validator, name);
34 }
35
36 bool Create(wxWindow *parent,
37 wxWindowID id,
38 const wxDateTime& dt = wxDefaultDateTime,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = wxTP_DEFAULT,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxTimePickerCtrlNameStr)
44 {
45 return MSWCreateDateTimePicker(parent, id, dt,
46 pos, size, style,
47 validator, name);
48 }
49
50 // Override MSW-specific functions used during control creation.
51 virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
52
53protected:
54 virtual wxLocaleInfo MSWGetFormat() const;
55 virtual bool MSWAllowsNone() const { return false; }
56 virtual bool MSWOnDateTimeChange(const tagNMDATETIMECHANGE& dtch);
57
58 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxTimePickerCtrl);
59};
60
61#endif // _WX_MSW_TIMECTRL_H_