OWLNext 6.32
Public Types | Public Member Functions | Protected Member Functions
owl::TMonthCalendar Class Reference
Inheritance diagram for owl::TMonthCalendar:
owl::TControl owl::TWindow owl::TEventHandler owl::TStreamableBase

List of all members.

Public Types

enum  TColors { mcBackColor = MCSC_BACKGROUND, mcTextColor = MCSC_TEXT, mcTitleBackColor = MCSC_TITLEBK, mcTitleTextColor = MCSC_TITLETEXT, mcMonthBackColor = MCSC_MONTHBK, mcTrailingTextColor = MCSC_TRAILINGTEXT }
enum  TDaysOfWeek { dwMonday = 0, dwTuesday, dwWednesday, dwThursday, dwFriday, dwSaturday, dwSunday }

Public Member Functions

 TMonthCalendar (TWindow *parent, int id, int x, int y, int w, int h, TModule *=0)
 TMonthCalendar (TWindow *parent, int resourceId, TModule *=0)
 TMonthCalendar (THandle hWnd, TModule *module=0)
void SetColor (TColors index, const TColor &clr)
TColor GetColor (TColors index) const
bool SetCurSel (const TSystemTime &tm)
bool GetCurSel (TSystemTime &tm) const
bool SetFirstDayOfWeek (TDaysOfWeek day)
TDaysOfWeek GetFirstDayOfWeek (bool *local=0) const
bool SetMaxSelCount (int count)
int GetMaxSelCount () const
int GetMaxTodayWidth () const
bool GetMinReqRect (TRect &rc) const
int SetMonthDelta (int delta)
int GetMonthDelta () const
int GetMonthRange (TSystemTime &minm, TSystemTime &maxm, uint32 flags=GMR_DAYSTATE) const
uint32 GetRange (TSystemTime &minm, TSystemTime &maxm) const
bool SetRange (const TSystemTime &minm, const TSystemTime &maxm)
bool SetMinDate (const TSystemTime &minm)
bool SetMaxDate (const TSystemTime &minm)
bool GetSelRange (TSystemTime &minm, TSystemTime &maxm) const
bool SetSelRange (const TSystemTime &minm, const TSystemTime &maxm)
bool GetToday (TSystemTime &today) const
void SetToday (const TSystemTime &today)
bool IsUnicode () const
void SetUnicode (bool unicode=true)
uint32 HitTest (TMCHitTestInfo &hitinfo)
bool SetDayState (int months, LPMONTHDAYSTATE states)
uint Transfer (TMonthCalendarData &data, TTransferDirection direction)

Protected Member Functions

uint Transfer (void *buffer, TTransferDirection direction)
virtual TGetClassNameReturnType GetClassName ()

Constructor & Destructor Documentation

owl::TMonthCalendar::TMonthCalendar ( THandle  hWnd,
TModule module = 0 
)

Constructs a month calendar object to encapsulate (alias) an existing control.

References owl::TXCommCtrl::Raise().


Member Function Documentation

uint owl::TMonthCalendar::Transfer ( TMonthCalendarData data,
TTransferDirection  direction 
) [inline]

Safe overload.

References Transfer().

uint owl::TMonthCalendar::Transfer ( void *  buffer,
TTransferDirection  direction 
) [protected, virtual]

Transfers data to or from any window with or without children and returns the total size of the data transferred. Transfer is a general mechanism for data transfer that can be used with or without using TransferData. The direction supplied specifies whether data is to be read from or written to the supplied buffer, or whether the size of the transfer data is simply to be returned. Data is not transferred to or from any child windows whose wfTransfer flag is not set. The return value is the size (in bytes) of the transfer data.

Reimplemented from owl::TWindow.

References owl::tdGetData, and owl::tdSetData.


The documentation for this class was generated from the following files: