9#if !defined(OWL_DATETIME_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
65 void SetColor(TDateTimeColors index,
const TColor& clr);
66 TColor GetColor(TDateTimeColors index)
const;
68 bool SetFormat(LPCTSTR format);
70 HFONT GetFont()
const;
71 void SetFont(HFONT font,
bool redraw =
true);
81 HWND GetMonthCalCtrl();
129 return static_cast<bool>(
SendMessage(DTM_SETFORMAT, 0,
reinterpret_cast<TParam2>(format)));
150 return reinterpret_cast<HWND
>(
SendMessage(DTM_GETMONTHCAL, 0, 0));
157 return static_cast<bool>(
SendMessage(DTM_SETSYSTEMTIME,
static_cast<TParam1>(GDT_VALID),
reinterpret_cast<TParam2>(&dt)));
164 return static_cast<bool>(
SendMessage(DTM_SETSYSTEMTIME,
static_cast<TParam1>(GDT_NONE), 0));
#define PRECONDITION(condition)
Class wrapper for management of color values.
COLORREF GetValue() const
Get a 32bit COLORREF type from this color object.
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),...
TSystemTime MinDate
default TSystemTime(0) not set
TDateTimePickerData(const TSystemTime &dt=TSystemTime::LocalTime(), const TSystemTime &mind=TSystemTime(1980, 0, 0), const TSystemTime &maxd=TSystemTime(2100, 0, 0))
TSystemTime MaxDate
default TSystemTime(0) not set
bool SetTime(const TSystemTime &dt)
bool SetFormat(const tstring &format)
void SetFont(HFONT font, bool redraw=true)
bool SetFormat(LPCTSTR format)
TColor GetColor(TDateTimeColors index) const
void SetColor(TDateTimeColors index, const TColor &clr)
TDateTimePicker(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
TSystemTime GetTime() const
uint Transfer(TDateTimePickerData &data, TTransferDirection direction)
Safe overload.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TSystemTime is a class derived from the structure SYSTEMTIME.
static TSystemTime LocalTime()
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...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
HWND GetHandle() const
Returns the handle of the window.
Definition of classes for CommonControl encapsulation.
Definition of class TControl.
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Object Windows Library (OWLNext Core).
uint32 MkUint32(uint16 lo, uint16 hi)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.