TimoSoft DateTimeControls  1.3.3.113
 All Classes Namespaces Functions Typedefs Enumerations Enumerator Properties Pages
_ICalendarEvents Interface Reference

The Calendar class' events interface More...

Public Member Functions

void SelectionChanged (DATE firstSelectedDate, DATE lastSelectedDate)
 The date selection was changed More...
 
void Click (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The user clicked into the control's client area More...
 
void ContextMenu (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails, VARIANT_BOOL *showDefaultMenu)
 The context menu should be displayed More...
 
void DateMouseEnter (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The mouse cursor was moved into a date cell's bounding rectangle More...
 
void DateMouseLeave (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The mouse cursor was moved out of a date cell's bounding rectangle More...
 
void DblClick (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The user double-clicked into the control's client area More...
 
void DestroyedControlWindow (LONG hWnd)
 The control window was destroyed More...
 
void GetBoldDates (DATE FirstDate, LONG numberOfDates, SAFEARRAY(VARIANT_BOOL)*states)
 The control needs to know which dates shall be displayed bold More...
 
void KeyDown (SHORT *keyCode, SHORT shift)
 A key was pressed while the control has the focus More...
 
void KeyPress (SHORT *keyAscii)
 An alphanumeric key was pressed and released while the control has the focus More...
 
void KeyUp (SHORT *keyCode, SHORT shift)
 A key was released while the control has the focus More...
 
void MClick (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The user clicked into the control's client area More...
 
void MDblClick (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The user double-clicked into the control's client area More...
 
void MouseDown (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 A mouse button was pressed over the control's client area More...
 
void MouseEnter (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The mouse cursor was moved into the control's client area More...
 
void MouseHover (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The mouse cursor was moved into the control's client area a specified period of time before More...
 
void MouseLeave (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The mouse cursor was moved out of the control's client area More...
 
void MouseMove (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The mouse cursor was moved over the control's client area More...
 
void MouseUp (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 A mouse button was released over the control's client area More...
 
void OLEDragDrop (IOLEDataObject *data, OLEDropEffectConstants *effect, DATE dropTarget, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The data was dropped onto the control during OLE drag'n'drop More...
 
void OLEDragEnter (IOLEDataObject *data, OLEDropEffectConstants *effect, DATE dropTarget, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails, LONG *autoHScrollVelocity)
 The data was dragged into the control during OLE drag'n'drop More...
 
void OLEDragLeave (IOLEDataObject *data, DATE dropTarget, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The data was dragged out of the control during OLE drag'n'drop More...
 
void OLEDragMouseMove (IOLEDataObject *data, OLEDropEffectConstants *effect, DATE dropTarget, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails, LONG *autoHScrollVelocity)
 The data was dragged over the control during OLE drag'n'drop More...
 
void RClick (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The user clicked into the control's client area More...
 
void RDblClick (DATE hitDate, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y, HitTestConstants hitTestDetails)
 The user double-clicked into the control's client area More...
 
void RecreatedControlWindow (LONG hWnd)
 The control window was recreated More...
 
void ResizedControlWindow (void)
 The control window was resized More...
 
void ViewChanged (ViewConstants oldView, ViewConstants newView)
 The view mode was changed More...
 

Detailed Description

The Calendar class' events interface

Author
Timo "TimoSoft" Kunze This interface defines all events the Calendar class may raise.
See Also
ICalendar

Member Function Documentation

void SelectionChanged ( DATE  firstSelectedDate,
DATE  lastSelectedDate 
)

The date selection was changed

Will be fired after another date or range of dates was selected.

Parameters
[in]firstSelectedDateThe first selected date.
[in]lastSelectedDateThe last selected date.
Remarks
This event maps directly to the MCN_SELCHANGE notification that the SysMonthCal32 window is sending whenever the selection changes. This notification is sent twice (and therefore the event is raised twice), if the user clicks one of the scroll buttons to view another month.
Also MCN_SELCHANGE is sent (and the event raised) at regular intervals to detect date changes.
See Also
ICalendar::GetSelection, ICalendar::SetSelection, ICalendar::CaretDate, MCN_SELCHANGE
void Click ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The user clicked into the control's client area

Will be fired if the user clicks into the control's client area using the left mouse button.

Parameters
[in]hitDateThe date that was clicked. May be zero.
[in]buttonThe mouse buttons that were pressed during the click. This should always be vbLeftButton (defined by VB's MouseButtonConstants enumeration).
[in]shiftThe modifier keys (Shift, Ctrl, Alt) that were pressed during the click. Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the click's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the click's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that was clicked. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
DblClick, MClick, RClick, HitTestConstants, ICalendar::DisabledEvents
void ContextMenu ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails,
VARIANT_BOOL *  showDefaultMenu 
)

The context menu should be displayed

Will be fired if the control's context menu should be displayed.

Parameters
[in]hitDateThe date the context menu refers to. Will be zero if the context menu should be displayed for the whole control instead of only for a single date.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the menu's proposed position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the menu's proposed position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the menu's proposed position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
[in,out]showDefaultMenuIf set to True, the default context menu is displayed; otherwise the control doesn't display any context menu itself, but you may display your custom menu.
See Also
RClick, HitTestConstants
void DateMouseEnter ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The mouse cursor was moved into a date cell's bounding rectangle

Will be fired if the user moved the mouse cursor into the specified date cell's bounding rectangle.

Parameters
[in]hitDateThe date that was entered.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Most of the values defined by the HitTestConstants enumeration are valid.
Remarks
This event may be disabled.
See Also
DateMouseLeave, MouseMove, HitTestConstants, ICalendar::DisabledEvents
void DateMouseLeave ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The mouse cursor was moved out of a date cell's bounding rectangle

Will be fired if the user moved the mouse cursor out of the specified date cell's bounding rectangle.

Parameters
[in]hitDateThe date that was left.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Most of the values defined by the HitTestConstants enumeration are valid.
Remarks
This event may be disabled.
See Also
DateMouseEnter, MouseMove, HitTestConstants, ICalendar::DisabledEvents
void DblClick ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The user double-clicked into the control's client area

Will be fired if the user double-clicks into the control's client area using the left mouse button.

Parameters
[in]hitDateThe date that was double-clicked. May be zero.
[in]buttonThe mouse buttons that were pressed during the double-click. This should always be vbLeftButton (defined by VB's MouseButtonConstants enumeration).
[in]shiftThe modifier keys (Shift, Ctrl, Alt) that were pressed during the double-click. Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the double-click's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the double-click's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that was double-clicked. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
Click, MDblClick, RDblClick, HitTestConstants, ICalendar::DetectDoubleClicks, ICalendar::DisabledEvents
void DestroyedControlWindow ( LONG  hWnd)

The control window was destroyed

Will be fired after the control window was destroyed.

Parameters
[in]hWndThe control's window handle.
See Also
RecreatedControlWindow, ICalendar::hWnd
void GetBoldDates ( DATE  FirstDate,
LONG  numberOfDates,
SAFEARRAY(VARIANT_BOOL)*  states 
)

The control needs to know which dates shall be displayed bold

Will be fired if the control needs to know which dates shall be displayed bold.

Parameters
[in]firstDateThe first date for which to retrieve the state.
[in]numberOfDatesThe number of dates for which to retrieve the states.
[in,out]statesAn array containing the state for each date.
Remarks
Due to a bug in Windows, bold dates won't show up bold if using comctl32.dll version 6.10 on Windows Vista.
See Also
ICalendar::SetBoldDates
void KeyDown ( SHORT *  keyCode,
SHORT  shift 
)

A key was pressed while the control has the focus

Will be fired if the user presses a key while the control has the focus.

Parameters
[in,out]keyCodeThe pressed key. Any of the values defined by VB's KeyCodeConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
Remarks
You may set keyCode to 0 to eat the message.
This event may be disabled.
See Also
KeyUp, KeyPress, ICalendar::DisabledEvents
void KeyPress ( SHORT *  keyAscii)

An alphanumeric key was pressed and released while the control has the focus

Will be fired if the user presses and releases an alphanumeric key while the control has the focus.

Parameters
[in,out]keyAsciiThe pressed key's ASCII code.
Remarks
You may set keyAscii to 0 to eat the message.
This event may be disabled.
See Also
KeyDown, KeyUp, ICalendar::DisabledEvents
void KeyUp ( SHORT *  keyCode,
SHORT  shift 
)

A key was released while the control has the focus

Will be fired if the user releases a key while the control has the focus.

Parameters
[in,out]keyCodeThe released key. Any of the values defined by VB's KeyCodeConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
Remarks
You may set keyCode to 0 to eat the message.
This event may be disabled.
See Also
KeyDown, KeyPress, ICalendar::DisabledEvents
void MClick ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The user clicked into the control's client area

Will be fired if the user clicks into the control's client area using the middle mouse button.

Parameters
[in]hitDateThe date that was clicked. May be zero.
[in]buttonThe mouse buttons that were pressed during the click. This should always be vbMiddleButton (defined by VB's MouseButtonConstants enumeration).
[in]shiftThe modifier keys (Shift, Ctrl, Alt) that were pressed during the click. Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the click's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the click's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that was clicked. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MDblClick, Click, RClick, HitTestConstants, ICalendar::DisabledEvents
void MDblClick ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The user double-clicked into the control's client area

Will be fired if the user double-clicks into the control's client area using the middle mouse button.

Parameters
[in]hitDateThe date that was double-clicked. May be zero.
[in]buttonThe mouse buttons that were pressed during the double-click. This should always be vbMiddleButton (defined by VB's MouseButtonConstants enumeration).
[in]shiftThe modifier keys (Shift, Ctrl, Alt) that were pressed during the double-click. Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the double-click's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the double-click's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that was double-clicked. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MClick, DblClick, RDblClick, HitTestConstants, ICalendar::DetectDoubleClicks, ICalendar::DisabledEvents
void MouseDown ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

A mouse button was pressed over the control's client area

Will be fired if the user presses a mouse button while the mouse cursor is located over the control's client area.

Parameters
[in]hitDateThe date that the mouse cursor is located over. May be zero.
[in]buttonThe pressed mouse button. Any of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MouseUp, Click, MClick, RClick, HitTestConstants, ICalendar::DisabledEvents
void MouseEnter ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The mouse cursor was moved into the control's client area

Will be fired if the user moved the mouse cursor into the control's client area.

Parameters
[in]hitDateThe date that the mouse cursor is located over. May be zero.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MouseLeave, DateMouseEnter, MouseHover, MouseMove, HitTestConstants, ICalendar::DisabledEvents
void MouseHover ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The mouse cursor was moved into the control's client area a specified period of time before

Will be fired if the mouse cursor has been located over the control's client area for the number of milliseconds specified by the ICalendar::HoverTime property.

Parameters
[in]hitDateThedate that the mouse cursor is located over. May be zero.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MouseEnter, MouseLeave, MouseMove, ICalendar::HoverTime, HitTestConstants, ICalendar::DisabledEvents
void MouseLeave ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The mouse cursor was moved out of the control's client area

Will be fired if the user moves the mouse cursor out of the control's client area.

Parameters
[in]hitDateThe date that the mouse cursor is located over. May be zero.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MouseEnter, DateMouseLeave, MouseHover, MouseMove, HitTestConstants, ICalendar::DisabledEvents
void MouseMove ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The mouse cursor was moved over the control's client area

Will be fired if the user moves the mouse cursor over the control's client area.

Parameters
[in]hitDateThe date that the mouse cursor is located over. May be zero.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MouseEnter, MouseLeave, MouseDown, MouseUp, HitTestConstants, ICalendar::DisabledEvents
void MouseUp ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

A mouse button was released over the control's client area

Will be fired if the user releases a mouse button while the mouse cursor is located over the control's client area.

Parameters
[in]hitDateThe date that the mouse cursor is located over. May be zero.
[in]buttonThe released mouse button. Any of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
MouseDown, Click, MClick, RClick, HitTestConstants, ICalendar::DisabledEvents
void OLEDragDrop ( IOLEDataObject data,
OLEDropEffectConstants effect,
DATE  dropTarget,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The data was dropped onto the control during OLE drag'n'drop

Will be fired during OLE drag'n'drop if the user completes the operation while the mouse cursor is located over the control's client area.

Parameters
[in]dataThe dropped data.
[in,out]effectOn entry, a bit field of the drop effects (defined by the OLEDropEffectConstants enumeration) supported by the drag source. On return, this paramter must be set to the drop effect that the target finally executed.
[in]dropTargetThe date that is below the mouse cursor's position.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
Don't forget to release any references that you hold to the data object.
See Also
OLEDragEnter, OLEDragMouseMove, OLEDragLeave, MouseUp, ICalendar::RegisterForOLEDragDrop, OLEDropEffectConstants, HitTestConstants
void OLEDragEnter ( IOLEDataObject data,
OLEDropEffectConstants effect,
DATE  dropTarget,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails,
LONG *  autoHScrollVelocity 
)

The data was dragged into the control during OLE drag'n'drop

Will be fired during OLE drag'n'drop if the user moved the mouse cursor into the control's client area.

Parameters
[in]dataThe dragged data.
[in,out]effectOn entry, a bit field of the drop effects (defined by the OLEDropEffectConstants enumeration) supported by the drag source. On return, this paramter must be set to the drop effect that the target wants to be used on drop.
[in]dropTargetThe date that is below the mouse cursor's position.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
[in,out]autoHScrollVelocityThe speed multiplier for horizontal auto-scrolling. If set to 0, horizontal auto-scrolling is disabled; if set to a value less than 0, the control auto-scrolls to the left; if set to a value greater than 0, the control auto-scrolls to the right. The higher/lower the value is, the faster the control scrolls.
See Also
OLEDragMouseMove, OLEDragLeave, OLEDragDrop, MouseEnter, ICalendar::RegisterForOLEDragDrop, OLEDropEffectConstants, ICalendar::DragScrollTimeBase, HitTestConstants
void OLEDragLeave ( IOLEDataObject data,
DATE  dropTarget,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The data was dragged out of the control during OLE drag'n'drop

Will be fired during OLE drag'n'drop if the user moves the mouse cursor out of the control's client area or if the user canceled the drag'n'drop operation.

Parameters
[in]dataThe dragged data.
[in]dropTargetThe date that is below the mouse cursor's position.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
Don't forget to release any references that you hold to the data object.
See Also
OLEDragEnter, OLEDragMouseMove, OLEDragDrop, MouseLeave, ICalendar::RegisterForOLEDragDrop, HitTestConstants
void OLEDragMouseMove ( IOLEDataObject data,
OLEDropEffectConstants effect,
DATE  dropTarget,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails,
LONG *  autoHScrollVelocity 
)

The data was dragged over the control during OLE drag'n'drop

Will be fired during OLE drag'n'drop if the user moves the mouse cursor over the control's client area.

Parameters
[in]dataThe dragged data.
[in,out]effectOn entry, a bit field of the drop effects (defined by the OLEDropEffectConstants enumeration) supported by the drag source. On return, this paramter must be set to the drop effect that the target wants to be used on drop.
[in]dropTargetThe date that is below the mouse cursor's position.
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration is valid.
[in]shiftThe pressed modifier keys (Shift, Ctrl, Alt). Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the mouse cursor's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that the mouse cursor's position lies in. Any of the values defined by the HitTestConstants enumeration is valid.
[in,out]autoHScrollVelocityThe speed multiplier for horizontal auto-scrolling. If set to 0, horizontal auto-scrolling is disabled; if set to a value less than 0, the control auto-scrolls to the left; if set to a value greater than 0, the control auto-scrolls to the right. The higher/lower the value is, the faster the control scrolls.
See Also
OLEDragEnter, OLEDragLeave, OLEDragDrop, MouseMove, ICalendar::RegisterForOLEDragDrop, OLEDropEffectConstants, ICalendar::DragScrollTimeBase, HitTestConstants
void RClick ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The user clicked into the control's client area

Will be fired if the user clicks into the control's client area using the right mouse button.

Parameters
[in]hitDateThe date that was clicked. May be zero.
[in]buttonThe mouse buttons that were pressed during the click. This should always be vbRightButton (defined by VB's MouseButtonConstants enumeration).
[in]shiftThe modifier keys (Shift, Ctrl, Alt) that were pressed during the click. Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the click's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the click's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that was clicked. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
ContextMenu, RDblClick, Click, MClick, HitTestConstants, ICalendar::DisabledEvents
void RDblClick ( DATE  hitDate,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y,
HitTestConstants  hitTestDetails 
)

The user double-clicked into the control's client area

Will be fired if the user double-clicks into the control's client area using the right mouse button.

Parameters
[in]hitDateThe date that was double-clicked. May be zero.
[in]buttonThe mouse buttons that were pressed during the double-click. This should always be vbRightButton (defined by VB's MouseButtonConstants enumeration).
[in]shiftThe modifier keys (Shift, Ctrl, Alt) that were pressed during the double-click. Any combination of the values defined by VB's ShiftConstants enumeration is valid.
[in]xThe x-coordinate (in twips) of the double-click's position relative to the control's upper-left corner.
[in]yThe y-coordinate (in twips) of the double-click's position relative to the control's upper-left corner.
[in]hitTestDetailsSpecifies the part of the control that was double-clicked. Any of the values defined by the HitTestConstants enumeration is valid.
Remarks
This event may be disabled.
See Also
RClick, DblClick, MDblClick, HitTestConstants, ICalendar::DetectDoubleClicks, ICalendar::DisabledEvents
void RecreatedControlWindow ( LONG  hWnd)

The control window was recreated

Will be fired after the control window was destroyed and recreated.
Some properties can't be changed after the control window was created. If such a property is changed and the control window already exists, it is destroyed and recreated.

Parameters
[in]hWndThe control's window handle.
See Also
DestroyedControlWindow, ICalendar::hWnd
void ResizedControlWindow ( void  )

The control window was resized

Will be fired after the control window was resized.

void ViewChanged ( ViewConstants  oldView,
ViewConstants  newView 
)

The view mode was changed

Will be fired after the control's view mode was changed.

Parameters
[in]oldViewThe previous view mode.
[in]newViewThe new view mode.
Remarks
Requires comctl32.dll version 6.10 or higher.
See Also
ICalendar::View, ViewConstants