SavvyUI C++ UI Library
Loading...
Searching...
No Matches
DateTimePicker.h
Go to the documentation of this file.
1#pragma once
2
3#include "Component.h"
4#include "Calendar.h"
5
15{
17 wstring _date;
18
19 Calendar _calendar;
20
21protected:
34 BOOL getCreateWindowOptions(wstring& title, UINT& widownStyles, wstring& wndClassName, BOOL& isCustomWndProc) override;
35
41 void windowCreated() override;
42
43public:
48
52 virtual ~DateTimePicker();
53
58
66 void setSelectedDate(const wstring& dateTimeYYYYMMDD);
67
73 wstring getSelectedDate();
74
80 void onPaint(Graphics *g);
81
86
91
102 void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed);
103
110
117};
HWND WinHandle
Definition Common.h:16
A UI component for displaying and interacting with calendar dates.
Definition Calendar.h:29
Component()
Constructs a new Component instance.
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Handles mouse press events.
void onWindowMoved()
Called when the window containing the control is moved.
void onWindowResized()
Called when the window containing the control is resized.
DateTimePicker()
Constructs a new DateTimePicker component.
void setSelectedDate(const wstring &dateTimeYYYYMMDD)
Sets the selected date.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc) override
Provides window creation options specific to the DateTimePicker control.
void onSelectionChanged(const SelectionChangeEvent &ev)
Responds to selection changes triggered by internal components like CheckList.
int getPreferredHeight()
Returns the preferred height.
virtual ~DateTimePicker()
Destructor.
wstring getSelectedDate()
Retrieves the currently selected date.
void addSelectionChangedListener(SelectionChangeListener *l)
Adds a listener to be notified when the selection changes.
void windowCreated() override
Called after the native window has been created.
void onPaint(Graphics *g)
Renders the CheckComboBox.
Definition Graphics.h:161
Definition EventListeners.h:22
Definition EventListeners.h:31