WINDEX
datebox.h
1 #include "commctrl.h"
2 
3 // Enable common controls v6
4 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
5 
6 namespace wex
7 {
9  class datebox : public gui
10  {
11  public:
12  datebox(gui *parent)
13  : gui(parent, DATETIMEPICK_CLASS,
14  WS_BORDER | WS_CHILD | WS_VISIBLE | DTS_SHOWNONE)
15  {
16  int dbg = 0;
17  }
18  static void init()
19  {
20  INITCOMMONCONTROLSEX icex;
21  icex.dwSize = sizeof(icex);
22  icex.dwICC = ICC_DATE_CLASSES;
23  if( ! InitCommonControlsEx(&icex) )
24  throw std::runtime_error("InitCommonControlsEx failed");
25  }
26  };
27 }
A popup window where user can select a date from a calendar.
Definition: datebox.h:10
The base class for all windex gui elements.
Definition: wex.h:824
gui()
Construct top level window with no parent.
Definition: wex.h:831