71 SYSTEMTIME sysTimes[2];
72 memset(sysTimes, 0,
sizeof(sysTimes));
74 int count =
static_cast<int>(
const_cast<TMonthCalendar*
>(
this)->SendMessage(MCM_GETMONTHRANGE,
90 SYSTEMTIME sysTimes[2];
91 memset(sysTimes, 0,
sizeof(sysTimes));
97 if (ranges & GDTR_MIN)
99 if (ranges & GDTR_MAX)
112 SYSTEMTIME sysTimes[2];
125 SYSTEMTIME sysTimes[2];
137 SYSTEMTIME sysTimes[2];
151 SYSTEMTIME sysTimes[2];
166 SYSTEMTIME sysTimes[2];
179 if (!buffer && direction !=
tdSizeData)
return 0;
#define PRECONDITION(condition)
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
bool SetMinDate(const TSystemTime &minm)
bool SetRange(const TSystemTime &minm, const TSystemTime &maxm)
bool SetMaxDate(const TSystemTime &minm)
uint Transfer(TMonthCalendarData &data, TTransferDirection direction)
Safe overload.
bool GetCurSel(TSystemTime &tm) const
bool SetSelRange(const TSystemTime &minm, const TSystemTime &maxm)
bool SetCurSel(const TSystemTime &tm)
virtual auto GetWindowClassName() -> TWindowClassName
int GetMonthRange(TSystemTime &minm, TSystemTime &maxm, uint32 flags=GMR_DAYSTATE) const
uint32 GetRange(TSystemTime &minm, TSystemTime &maxm) const
bool GetSelRange(TSystemTime &minm, TSystemTime &maxm) const
TMonthCalendar(TWindow *parent, int id, int x, int y, int w, int h, TModule *=0)
TSystemTime is a class derived from the structure SYSTEMTIME.
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
uint32 GetStyle() const
Gets the style bits of the underlying window or the 'Style' member of the attribute structure associa...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
HWND THandle
TWindow encapsulates an HWND.
HWND GetHandle() const
Returns the handle of the window.
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
@ tdSizeData
Return the size of data transferred by the class.
@ tdSetData
Set data from the buffer into the window.
@ tdGetData
Get data from the window into the buffer.
Definition of class TMonthCalendar.
Object Windows Library (OWLNext Core).
void InitializeCommonControls(uint controlFlags)
Wrapper for the Windows API function InitCommmonControlsEx.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
DIAG_DECLARE_GROUP(OwlThread)