TimoSoft DateTimeControls  1.3.3.113
 All Classes Namespaces Functions Typedefs Enumerations Enumerator Properties Pages
DTCtlsLibU Namespace Reference

Contains COM definitions for the controls' public interfaces More...

Classes

interface  IOLEDataObject
 Wraps the IDataObject interface More...
 
interface  _IOLEDataObjectEvents
 The OLEDataObject class' events interface More...
 
class  OLEDataObject
 The OLEDataObject class More...
 
interface  ICalendar
 The main interface More...
 
interface  _ICalendarEvents
 The Calendar class' events interface More...
 
class  Calendar
 The Calendar class More...
 
interface  IDateTimePicker
 The main interface More...
 
interface  _IDateTimePickerEvents
 The DateTimePicker class' events interface More...
 
class  DateTimePicker
 The DateTimePicker class More...
 

Typedefs

typedef enum
DTCtlsLibU::AppearanceConstants 
AppearanceConstants
 Constants used with the Appearance properties More...
 
typedef enum
DTCtlsLibU::BorderStyleConstants 
BorderStyleConstants
 Constants used with the BorderStyle properties More...
 
typedef enum
DTCtlsLibU::ControlPartConstants 
ControlPartConstants
 Constants used with the GetRectangle and CalendarGetRectangle method More...
 
typedef enum
DTCtlsLibU::DateFormatConstants 
DateFormatConstants
 Constants used with the DateFormat property More...
 
typedef enum
DTCtlsLibU::DisabledEventsConstants 
DisabledEventsConstants
 Flags used with the DisabledEvents properties More...
 
typedef enum
DTCtlsLibU::DropDescriptionIconConstants 
DropDescriptionIconConstants
 Constants used with the IOLEDataObject::GetDropDescription and IOLEDataObject::SetDropDescription methods More...
 
typedef enum
DTCtlsLibU::DropDownAlignmentConstants 
DropDownAlignmentConstants
 Constants used with the DropDownAlignment property More...
 
typedef enum
DTCtlsLibU::HitTestConstants 
HitTestConstants
 Flags used with the HitTest and CalendarHitTest methods More...
 
typedef enum
DTCtlsLibU::IMEModeConstants 
IMEModeConstants
 Constants used with the IMEMode property More...
 
typedef enum
DTCtlsLibU::MousePointerConstants 
MousePointerConstants
 Constants used with the MousePointer properties More...
 
typedef enum
DTCtlsLibU::OLEDropEffectConstants 
OLEDropEffectConstants
 Constants used with OLE drag'n'drop More...
 
typedef enum
DTCtlsLibU::RightToLeftConstants 
RightToLeftConstants
 Flags used with the RightToLeft properties More...
 
typedef enum
DTCtlsLibU::StartOfWeekConstants 
StartOfWeekConstants
 Constants used with the StartOfWeek properties More...
 
typedef enum
DTCtlsLibU::StyleConstants 
StyleConstants
 Constants used with the Style property More...
 
typedef enum
DTCtlsLibU::ViewConstants 
ViewConstants
 Constants used with the View and CalendarView properties More...
 

Enumerations

enum  AppearanceConstants { a2D, a3D, a3DLight, aDefault }
 Constants used with the Appearance properties More...
 
enum  BorderStyleConstants { bsNone, bsFixedSingle }
 Constants used with the BorderStyle properties More...
 
enum  ControlPartConstants {
  cpControl = 0, cpNextButton = 1, cpPreviousButton = 2, cpFooter = 3,
  cpCalendar = 4, cpCalendarHeader = 5, cpCalendarBody = 6, cpCalendarRow = 7,
  cpCalendarCell = 8
}
 Constants used with the GetRectangle and CalendarGetRectangle method More...
 
enum  DateFormatConstants {
  dfShortDate, dfShortDateWithFourDigitYear, dfLongDate, dfTime,
  dfCustom
}
 Constants used with the DateFormat property More...
 
enum  DisabledEventsConstants {
  deMouseEvents = 0x01, deClickEvents = 0x02, deCalendarMouseEvents = 0x04, deKeyboardEvents = 0x08,
  deCalendarKeyboardEvents = 0x10, deCalendarClickEvents = 0x20, deParseUserInput = 0x400
}
 Flags used with the DisabledEvents properties More...
 
enum  DropDescriptionIconConstants {
  ddiNone = -1, ddiNoDrop = 0, ddiCopy = 1, ddiMove = 2,
  ddiLink = 4, ddiMetadataChange = 6, ddiWarning = 7, ddiUseDefault = 8
}
 Constants used with the IOLEDataObject::GetDropDescription and IOLEDataObject::SetDropDescription methods More...
 
enum  DropDownAlignmentConstants { ddaLeft, ddaRight }
 Constants used with the DropDownAlignment property More...
 
enum  HitTestConstants {
  htOutsideControl = 0x00000000, htTitle = 0x00010000, htCalendar = 0x00020000, htTodayLink = 0x00030000,
  htControl = 0x00100000, htNextMonth = 0x01000000, htPrevMonth = 0x02000000, htTitleBackground = htTitle,
  htTitleMonth = htTitle | 0x0001, htTitleYear = htTitle | 0x0002, htTitleNextButton = htTitle | htNextMonth | 0x0003, htTitlePrevButton = htTitle | htPrevMonth | 0x0003,
  htCalendarBackground = htCalendar, htDate = htCalendar | 0x0001, htDateOfNextMonth = htDate | htNextMonth, htDateOfPrevMonth = htDate | htPrevMonth,
  htDayAbbreviation = htCalendar | 0x0002, htWeekNumber = htCalendar | 0x0003, htMinDate = htCalendar | 0x0004, htMaxDate = htCalendar | 0x0005
}
 Flags used with the HitTest and CalendarHitTest methods More...
 
enum  IMEModeConstants {
  imeInherit = -1, imeNoControl = 0, imeOn = 1, imeOff = 2,
  imeDisable = 3, imeHiragana = 4, imeKatakana = 5, imeKatakanaHalf = 6,
  imeAlphaFull = 7, imeAlpha = 8, imeHangulFull = 9, imeHangul = 10
}
 Constants used with the IMEMode property More...
 
enum  MousePointerConstants {
  mpDefault, mpArrow, mpCross, mpIBeam,
  mpIcon, mpSize, mpSizeNESW, mpSizeNS,
  mpSizeNWSE, mpSizeEW, mpUpArrow, mpHourglass,
  mpNoDrop, mpArrowHourglass, mpArrowQuestion, mpSizeAll,
  mpHand, mpInsertMedia, mpScrollAll, mpScrollN,
  mpScrollNE, mpScrollE, mpScrollSE, mpScrollS,
  mpScrollSW, mpScrollW, mpScrollNW, mpScrollNS,
  mpScrollEW, mpCustom = 0x63
}
 Constants used with the MousePointer properties More...
 
enum  OLEDropEffectConstants {
  odeNone = 0, odeCopy = 1, odeMove = 2, odeLink = 4,
  odeCopyOrMove = odeCopy | odeMove, odeScroll = 0x80000000
}
 Constants used with OLE drag'n'drop More...
 
enum  RightToLeftConstants { rtlText = 1, rtlLayout = 2 }
 Flags used with the RightToLeft properties More...
 
enum  StartOfWeekConstants {
  sowUseLocale = -1, sowMonday = 0, sowTuesday, sowWednesday,
  sowThursday, sowFriday, sowSaturday, sowSunday
}
 Constants used with the StartOfWeek properties More...
 
enum  StyleConstants { sDropDown, sUpDown }
 Constants used with the Style property More...
 
enum  ViewConstants { vMonth = 0, vYear = 1, vDecade = 2, vCentury = 3 }
 Constants used with the View and CalendarView properties More...
 

Detailed Description

Contains COM definitions for the controls' public interfaces

This is the Unicode version of the DateTimeControls COM library.

Typedef Documentation

Constants used with the Appearance properties

See Also
ICalendar::Appearance, IDateTimePicker::Appearance

Constants used with the BorderStyle properties

See Also
ICalendar::BorderStyle, IDateTimePicker::BorderStyle

Constants used with the GetRectangle and CalendarGetRectangle method

See Also
ICalendar::GetRectangle, IDateTimePicker::CalendarGetRectangle

Constants used with the DateFormat property

See Also
IDateTimePicker::DateFormat

Constants used with the DropDownAlignment property

See Also
IDateTimePicker::DropDownAlignment

Flags used with the HitTest and CalendarHitTest methods

See Also
ICalendar::HitTest, IDateTimePicker::CalendarHitTest

Constants used with the IMEMode property

See Also
IDateTimePicker::IMEMode

Constants used with the MousePointer properties

See Also
ICalendar::MousePointer, IDateTimePicker::MousePointer

Flags used with the RightToLeft properties

See Also
ICalendar::RightToLeft, IDateTimePicker::RightToLeft

Constants used with the StartOfWeek properties

See Also
ICalendar::StartOfWeek, IDateTimePicker::StartOfWeek

Constants used with the Style property

See Also
IDateTimePicker::Style

Constants used with the View and CalendarView properties

See Also
ICalendar::View, IDateTimePicker::CalendarView

Enumeration Type Documentation

Constants used with the Appearance properties

See Also
ICalendar::Appearance, IDateTimePicker::Appearance
Enumerator
a2D 

The control is drawn with a flat border.

a3D 

The control is drawn with a normal 3D border.

a3DLight 

The control is drawn with a light 3D border.

aDefault 

Let the control decide about the outer border style.

Remarks
This value can't be set at runtime and is valid for the DateTimePicker control only.

Constants used with the BorderStyle properties

See Also
ICalendar::BorderStyle, IDateTimePicker::BorderStyle
Enumerator
bsNone 

The control is drawn without an inner border.

bsFixedSingle 

The control is drawn with an inner border.

Constants used with the GetRectangle and CalendarGetRectangle method

See Also
ICalendar::GetRectangle, IDateTimePicker::CalendarGetRectangle
Enumerator
cpControl 

Retrieves the bounding rectangle of the whole control.

cpNextButton 

Retrieves the bounding rectangle of the next-month button.

cpPreviousButton 

Retrieves the bounding rectangle of the previous-month button.

cpFooter 

Retrieves the bounding rectangle of the previous-month button.

cpCalendar 

Retrieves the bounding rectangle of the specified calendar.

cpCalendarHeader 

Retrieves the bounding rectangle of the specified calendar's header.

cpCalendarBody 

Retrieves the bounding rectangle of the specified calendar's body.

cpCalendarRow 

Retrieves the bounding rectangle of the specified calendar grid row.

cpCalendarCell 

Retrieves the bounding rectangle of the specified calendar grid cell.

Constants used with the DateFormat property

See Also
IDateTimePicker::DateFormat
Enumerator
dfShortDate 

The date is displayed in short format, e. g. “12/26/08”.

dfShortDateWithFourDigitYear 

The date is displayed in short format, but with a four-digit year, e. g. “12/26/2008”.

dfLongDate 

The date is displayed in long format, e. g. “Friday, December 26, 2008”.

dfTime 

The time is displayed, e. g. “10:01:34 PM”.

Remarks
Activating this format will change the Style property to sUpDown.
dfCustom 

The date is displayed using the custom format specified by the CustomDateFormat property.

See Also
IDateTimePicker::CustomDateFormat

Flags used with the DisabledEvents properties

See Also
ICalendar::DisabledEvents, IDateTimePicker::DisabledEvents
Enumerator
deMouseEvents 

Mouse events won't be fired.

The following events won't be fired: \c MouseDown, \c MouseUp, \c MouseEnter, \c MouseHover,
\c MouseLeave, \c DateMouseEnter, \c DateMouseLeave, \c MouseMove
See Also
_ICalendarEvents::MouseDown, _ICalendarEvents::MouseUp, _ICalendarEvents::MouseEnter, _ICalendarEvents::MouseHover, _ICalendarEvents::MouseLeave, _ICalendarEvents::DateMouseEnter, _ICalendarEvents::DateMouseLeave, _ICalendarEvents::MouseMove, _IDateTimePickerEvents::MouseDown, _IDateTimePickerEvents::MouseUp, _IDateTimePickerEvents::MouseEnter, _IDateTimePickerEvents::MouseHover, _IDateTimePickerEvents::MouseLeave, _IDateTimePickerEvents::MouseMove
deClickEvents 

Click events won't be fired.

The following events won't be fired: \c Click, \c DblClick, \c MClick, \c MDblClick,
\c RClick, \c RDblClick
See Also
_ICalendarEvents::Click, _ICalendarEvents::DblClick, _ICalendarEvents::MClick, _ICalendarEvents::MDblClick, _ICalendarEvents::RClick, _ICalendarEvents::RDblClick, _IDateTimePickerEvents::Click, _IDateTimePickerEvents::DblClick, _IDateTimePickerEvents::MClick, _IDateTimePickerEvents::MDblClick, _IDateTimePickerEvents::RClick, _IDateTimePickerEvents::RDblClick
deCalendarMouseEvents 

Mouse events concerning the drop-down calendar control won't be fired.

The following events won't be fired: \c CalendarMouseDown, \c CalendarMouseUp,
\c CalendarMouseEnter, \c CalendarMouseHover, \c CalendarMouseLeave, \c CalendarDateMouseEnter,
\c CalendarDateMouseLeave, \c CalendarMouseMove
See Also
_IDateTimePickerEvents::CalendarMouseDown, _IDateTimePickerEvents::CalendarMouseUp, _IDateTimePickerEvents::CalendarMouseEnter, _IDateTimePickerEvents::CalendarMouseHover, _IDateTimePickerEvents::CalendarMouseLeave, _IDateTimePickerEvents::CalendarDateMouseEnter, _IDateTimePickerEvents::CalendarDateMouseLeave, _IDateTimePickerEvents::CalendarMouseMove
deKeyboardEvents 

Keyboard events won't be fired.

The following events won't be fired: \c KeyDown, \c KeyUp, \c KeyPress
See Also
_ICalendarEvents::KeyDown, _ICalendarEvents::KeyUp, _ICalendarEvents::KeyPress, _IDateTimePickerEvents::KeyDown, _IDateTimePickerEvents::KeyUp, _IDateTimePickerEvents::KeyPress
deCalendarKeyboardEvents 

Keyboard events concerning the drop-down calendar control won't be fired.

The following events won't be fired: \c CalendarKeyDown, \c CalendarKeyUp, \c CalendarKeyPress
See Also
_IDateTimePickerEvents::CalendarKeyDown, _IDateTimePickerEvents::CalendarKeyUp, _IDateTimePickerEvents::CalendarKeyPress
deCalendarClickEvents 

Click events concerning the drop-down calendar control won't be fired.

The following events won't be fired: \c CalendarClick, \c CalendarMClick, \c CalendarRClick
See Also
_IDateTimePickerEvents::CalendarClick, _IDateTimePickerEvents::CalendarMClick, _IDateTimePickerEvents::CalendarRClick
deParseUserInput 

The ParseUserInput event won't be fired.

The following event won't be fired: \c ParseUserInput
Remarks
If this flag is set, the control accepts only valid user input. Otherwise it accepts any user input and raises the ParseUserInput event after the user has finished editing. The application must handle this event and tell the control the date that has been entered and whether it is valid.
See Also
_IDateTimePickerEvents::ParseUserInput

Constants used with the IOLEDataObject::GetDropDescription and IOLEDataObject::SetDropDescription methods

See Also
IOLEDataObject::GetDropDescription, IOLEDataObject::SetDropDescription
Enumerator
ddiNone 

No drop description is displayed.

ddiNoDrop 

The drop description icon that visualizes the odeNone drop effect is displayed.

ddiCopy 

The drop description icon that visualizes the odeCopy drop effect is displayed.

ddiMove 

The drop description icon that visualizes the odeMove drop effect is displayed.

ddiLink 

The drop description icon that visualizes the odeLink drop effect is displayed.

ddiMetadataChange 

The drop description icon that visualizes a drop, which causes a metadata change, is displayed.

ddiWarning 

The drop description icon that visualizes a warning is displayed.

ddiUseDefault 

The default drop description is displayed.

Remarks
Requires Windows 7 or newer.

Constants used with the DropDownAlignment property

See Also
IDateTimePicker::DropDownAlignment
Enumerator
ddaLeft 

The drop-down calendar control is left-aligned.

ddaRight 

The drop-down calendar control is right-aligned.

Flags used with the HitTest and CalendarHitTest methods

See Also
ICalendar::HitTest, IDateTimePicker::CalendarHitTest
Enumerator
htOutsideControl 

Outside the control or in an inactive portion of the control.

The specified point lies outside the control or in an inactive portion of the control.

htTitle 

Over a month's title.

The specified point lies over a month's title.

htCalendar 

Within the calendar.

The specified point lies within the calendar.

htTodayLink 

On the “Today” link.

The specified point lies on the “Today” link at the bottom of the control.

htControl 

Outside the calendar, but within the control.

The specified point lies outside the calendar, but within the control.
Remarks
Requires comctl32.dll version 6.10 or higher.
htNextMonth 

In an area that causes scrolling to the next month.

The specified point lies in an area that will cause the calendar to scroll its display to the next month or set of months.

htPrevMonth 

In an area that causes scrolling to the previous month.

The specified point lies in an area that will cause the calendar to scroll its display to the previous month or set of months.

htTitleBackground 

Over the background of a month's title.

The specified point lies over the background of a month's title.

htTitleMonth 

Over the month name in a month's title.

The specified point lies over the month name in a month's title.

htTitleYear 

Over the year value in a month's title.

The specified point lies over the year value in a month's title.

htTitleNextButton 

Over the button that causes scrolling to the next month.

The specified point lies over the button in the top right corner of the control, which causes the control to scroll its display to the next month or set of months.

htTitlePrevButton 

Over the button that causes scrolling to the previous month.

The specified point lies over the button in the top right corner of the control, which causes the control to scroll its display to the previous month or set of months.

htCalendarBackground 

Within the calendar's background.

The specified point lies within the calendar's background.

htDate 

On a particular date within the calendar.

The specified point lies on a particular date within the calendar.

htDateOfNextMonth 

Over a date from the next month.

The specified point lies over a date from the next month (partially displayed at the end of the currently displayed month).

htDateOfPrevMonth 

Over a date from the previous month.

The specified point lies over a date from the previous month (partially displayed at the end of the currently displayed month).

htDayAbbreviation 

Over a day abbreviation.

The specified point lies over a day abbreviation.

htWeekNumber 

Over a week number.

The specified point lies over a week number.

htMinDate 

Over the minimum date(s) in the calendar.

The specified point lies over the minimum date(s) in the calendar.

htMaxDate 

Over the maximum date(s) in the calendar.

The specified point lies over the maximum date(s) in the calendar.

Constants used with the IMEMode property

See Also
IDateTimePicker::IMEMode
Enumerator
imeInherit 

Use the same IME settings as the control's parent.

imeNoControl 

Don't change anything on the control's default IME settings.

imeOn 

Set the control's IME status to "on".

imeOff 

Set the control's IME status to "off".

imeDisable 

Don't use IME.

imeHiragana 

Set the control's IME status to "Hiragana Double-Byte Characters".

Remarks
This flag is valid only if the input language is Japanese.
imeKatakana 

Set the control's IME status to "Hiragana Double-Byte Characters".

Remarks
This flag is valid only if the input language is Japanese.
imeKatakanaHalf 

Set the control's IME status to "Katakana Single-Byte Characters".

Remarks
This flag is valid only if the input language is Japanese.
imeAlphaFull 

Set the control's IME status to "Alphanumeric Double-Byte Characters".

Remarks
This flag is valid only if the input language is Korean or Japanese.
imeAlpha 

Set the control's IME status to "Alphanumeric Single-Byte Characters".

Remarks
This flag is valid only if the input language is Korean or Japanese.
imeHangulFull 

Set the control's IME status to "Hangul Single-Byte Characters".

Remarks
This flag is valid only if the input language is Korean.
imeHangul 

Set the control's IME status to "Hangul Double-Byte Characters".

Remarks
This flag is valid only if the input language is Korean.

Constants used with the MousePointer properties

See Also
ICalendar::MousePointer, IDateTimePicker::MousePointer
Enumerator
mpDefault 

The default mouse cursor is used.

mpArrow 

The default arrow is used as mouse cursor.

mpCross 

A cross is used as mouse cursor.

mpIBeam 

A vertical beam (like in textboxes) is used as mouse cursor.

mpIcon 

An icon is used as mouse cursor.

mpSize 

A mouse cursor indicating window sizing is used.

mpSizeNESW 

A mouse cursor indicating window sizing is used.

This is the cursor that is used while resizing a window into the direction of its upper-right or lower-left corner.

mpSizeNS 

A mouse cursor indicating window sizing is used.

This is the cursor that is used while resizing a window into the direction of its upper or lower border.

mpSizeNWSE 

A mouse cursor indicating window sizing is used.

This is the cursor that is used while resizing a window into the direction of its upper-left or lower-right corner.

mpSizeEW 

A mouse cursor indicating window sizing is used.

This is the cursor that is used while resizing a window into the direction of its left or right border.

mpUpArrow 

An arrow pointing upwardly is used as mouse cursor.

mpHourglass 

An hourglass is used as mouse cursor.

mpNoDrop 

An mouse cursor indicating that the control can't be a drop target is used.

mpArrowHourglass 

The default arrow with a small hourglass is used as mouse cursor.

mpArrowQuestion 

The default arrow with a small question mark is used as mouse cursor.

mpSizeAll 

A mouse cursor indicating window sizing to all directions is used.

mpHand 

A hand typically used for hyperlinks is used as mouse cursor.

mpInsertMedia 

A mouse cursor indicating that the program waits for some media is used.

mpScrollAll 

A mouse cursor indicating scrolling to all directions is used.

mpScrollN 

A mouse cursor indicating scrolling upwardly is used.

mpScrollNE 

A mouse cursor indicating scrolling to the window's upper-right corner is used.

mpScrollE 

A mouse cursor indicating scrolling to the window's right border is used.

mpScrollSE 

A mouse cursor indicating scrolling to the window's lower-right corner is used.

mpScrollS 

A mouse cursor indicating scrolling downwards is used.

mpScrollSW 

A mouse cursor indicating scrolling to the window's lower-left corner is used.

mpScrollW 

A mouse cursor indicating scrolling to the window's left border is used.

mpScrollNW 

A mouse cursor indicating scrolling to the window's upper-left corner is used.

mpScrollNS 

A mouse cursor indicating scrolling upwardly or downwards is used.

mpScrollEW 

A mouse cursor indicating scrolling to the window's left or right border is used.

mpCustom 

The custom mouse cursor defined by the MouseIcon property is used.

Constants used with OLE drag'n'drop

See Also
_ICalendarEvents::OLEDragEnter, _ICalendarEvents::OLEDragMouseMove, _ICalendarEvents::OLEDragDrop, _IDateTimePickerEvents::CalendarOLEDragEnter, _IDateTimePickerEvents::CalendarOLEDragMouseMove, _IDateTimePickerEvents::CalendarOLEDragDrop, _IDateTimePickerEvents::OLEDragEnter, _IDateTimePickerEvents::OLEDragMouseMove, _IDateTimePickerEvents::OLEDragDrop
Enumerator
odeNone 

No OLE drag and drop operation has occurred or will occur.

odeCopy 

A copy has occured or will occur.

odeMove 

A move has occured or will occur.

odeLink 

A link has occured or will occur.

odeCopyOrMove 

Combination of odeCopy and odeMove.

odeScroll 

The drop target window has scrolled or will scroll.

Flags used with the RightToLeft properties

See Also
ICalendar::RightToLeft, IDateTimePicker::RightToLeft
Enumerator
rtlText 

Read text from right to left.

The control's text is read from right to left, but the general layout is left to right.

rtlLayout 

Use a right to left layout.

The general layout is right to left.

Constants used with the StartOfWeek properties

See Also
ICalendar::StartOfWeek, IDateTimePicker::StartOfWeek
Enumerator
sowUseLocale 

A week starts on the day specified by the currently active locale.

sowMonday 

A week starts on Monday.

sowTuesday 

A week starts on Tuesday.

sowWednesday 

A week starts on Wednesday.

sowThursday 

A week starts on Thursday.

sowFriday 

A week starts on Friday.

sowSaturday 

A week starts on Saturday.

sowSunday 

A week starts on Sunday.

Constants used with the Style property

See Also
IDateTimePicker::Style
Enumerator
sDropDown 

The control appears like a combo box and provides a drop-down calendar.

See Also
IDateTimePicker::hWndCalendar
sUpDown 

The control displays an up-down control instead of the drop-down button.

See Also
IDateTimePicker::hWndUpDown

Constants used with the View and CalendarView properties

See Also
ICalendar::View, IDateTimePicker::CalendarView
Enumerator
vMonth 

The calendar displays the dates of a single month.

vYear 

The calendar displays the months of a single year.

vDecade 

The calendar displays the years of a single decade.

vCentury 

The calendar displays the decades of a single century.