48 vector<DayInfo> _dayRects;
83 int _curYear, _curMonth;
88 int _selectedYear, _selectedMonth, _selectedDay;
98 void syncCurrentFromSelected();
221 void onKeyTyped(
wchar_t ch, BOOL shiftPressed, BOOL ctrlPressed);
HWND WinHandle
Definition Common.h:16
long left
Definition Common.h:111
long top
Definition Common.h:111
long right
Definition Common.h:111
long bottom
Definition Common.h:111
wstring getSelectedDate(int &year, int &month, int &day)
Gets the selected date components.
wstring getSelectedDate()
Gets the selected date as a string formatted as YYYYMMDD.
BOOL isPopup()
Return TRUE if this component is displayed as a popup (e.g. DateTimePicker).
void onFocusGained()
Called when the calendar gains focus.
virtual ~Calendar()
Destroys the Calendar component.
void onKeyTyped(wchar_t ch, BOOL shiftPressed, BOOL ctrlPressed)
Handles typed character input.
Calendar()
Constructs a Calendar component.
BOOL onMouseWheel(WinHandle hWnd, int x, int y, int delta)
Handles mouse wheel events.
void onWindowResized()
Called when the window has been resized.
void addSelectionChangedListener(SelectionChangeListener *l)
Adds a listener for selection change events.
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Handles mouse press events.
void onFocusLost()
Called when the calendar loses focus.
void setOrientation(const wstring &orientation)
Sets the orientation of the calendar.
void onKeyBackSpace(BOOL shiftPressed, BOOL ctrlPressed)
Handles Backspace key input.
void setSelectedDate(int year, int month, int day)
Sets the selected date using year, month, and day integers.
void setSelectedDate(const wstring &dateYYYYMMDD)
Sets the selected date using a string formatted as YYYYMMDD.
void onPaint(Graphics *g)
Paints the calendar to the provided device context.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves options needed to create the calendar window.
void windowCreated()
Called after the window has been successfully created.
void setAsPopup(BOOL isPopup)
Sets whether the calendar is used in a popup context.
Component()
Constructs a new Component instance.
DayInfo(int dayNo, Bounds rect)
Definition Calendar.h:9
int _dayNumber
Definition Calendar.h:17
Bounds _rect
Definition Calendar.h:18
Definition Graphics.h:161
Definition EventListeners.h:31