TimoSoft ButtonControls  1.10.4.207
_ICheckBoxEvents Interface Reference

The CheckBox class' events interface More...

Public Member Functions

void SelectionStateChanged (SelectionStateConstants previousSelectionState, SelectionStateConstants newSelectionState)
 The control's selection state was changed More...
 
void Click (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user clicked into the control's client area More...
 
void ContextMenu (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The context menu should be displayed More...
 
void CustomDraw (CustomDrawStageConstants drawStage, CustomDrawControlStateConstants controlState, LONG hDC, RECTANGLE *drawingRectangle, CustomDrawReturnValuesConstants *furtherProcessing)
 Custom drawing should be done here More...
 
void DblClick (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user double-clicked into the control's client area More...
 
void DestroyedControlWindow (LONG hWnd)
 The control window was destroyed 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 (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user clicked into the control's client area More...
 
void MDblClick (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user double-clicked into the control's client area More...
 
void MouseDown (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 A mouse button was pressed over the control's client area More...
 
void MouseEnter (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The mouse cursor was moved into the control's client area More...
 
void MouseHover (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The mouse cursor was moved into the control's client area a specified period of time before More...
 
void MouseLeave (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The mouse cursor was moved out of the control's client area More...
 
void MouseMove (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The mouse cursor was moved over the control's client area More...
 
void MouseUp (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 A mouse button was released over the control's client area More...
 
void OLEDragDrop (IOLEDataObject *data, OLEDropEffectConstants *effect, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The data was dropped onto the control during OLE drag'n'drop More...
 
void OLEDragEnter (IOLEDataObject *data, OLEDropEffectConstants *effect, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The data was dragged into the control during OLE drag'n'drop More...
 
void OLEDragLeave (IOLEDataObject *data, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The data was dragged out of the control during OLE drag'n'drop More...
 
void OLEDragMouseMove (IOLEDataObject *data, OLEDropEffectConstants *effect, SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The data was dragged over the control during OLE drag'n'drop More...
 
void OwnerDraw (OwnerDrawActionConstants requiredAction, OwnerDrawControlStateConstants controlState, LONG hDC, RECTANGLE *drawingRectangle)
 The control must be drawn More...
 
void RClick (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user clicked into the control's client area More...
 
void RDblClick (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 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 XClick (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user clicked into the control's client area More...
 
void XDblClick (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
 The user double-clicked into the control's client area More...
 

Detailed Description

The CheckBox class' events interface

This interface defines all events the CheckBox class may raise.

See also
ICheckBox

Member Function Documentation

◆ SelectionStateChanged()

void SelectionStateChanged ( SelectionStateConstants  previousSelectionState,
SelectionStateConstants  newSelectionState 
)

The control's selection state was changed

Will be fired after the control's selection state was changed.

Parameters
[in]previousSelectionStateThe control's previous selection state.
[in]newSelectionStateThe control's new selection state.
See also
ICheckBox::SelectionState, SelectionStateConstants

◆ Click()

void Click ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
This event may be disabled.
See also
DblClick, MClick, RClick, XClick, ICheckBox::DisabledEvents

◆ ContextMenu()

void ContextMenu ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

The context menu should be displayed

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

Parameters
[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.
See also
RClick

◆ CustomDraw()

void CustomDraw ( CustomDrawStageConstants  drawStage,
CustomDrawControlStateConstants  controlState,
LONG  hDC,
RECTANGLE drawingRectangle,
CustomDrawReturnValuesConstants furtherProcessing 
)

Custom drawing should be done here

Will be fired after the control processed a NM_CUSTOMDRAW notification allowing custom drawing of the control's content.

Parameters
[in]drawStageSpecifies the stage of custom drawing this event was raised for. Any of the values defined by the CustomDrawStageConstants enumeration is valid.
[in]controlStateSpecifies the control's current state (focused, selected etc.). Most of the values defined by the CustomDrawControlStateConstants enumeration are valid.
[in]hDCThe handle of the device context in which all drawing should take place.
[in]drawingRectangleThe bounding rectangle of the area that must be drawn.
[in,out]furtherProcessingControls further drawing. Most of the values defined by the CustomDrawReturnValuesConstants enumeration are valid.
Remarks
Requires comctl32.dll version 6.0 or higher.
This event may be disabled.
See also
OwnerDraw, RECTANGLE, CustomDrawStageConstants, CustomDrawControlStateConstants, CustomDrawReturnValuesConstants, ICheckBox::DisabledEvents, NM_CUSTOMDRAW (button)

◆ DblClick()

void DblClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
This event may be disabled.
See also
Click, MDblClick, RDblClick, XDblClick, ICheckBox::DisabledEvents

◆ DestroyedControlWindow()

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, ICheckBox::hWnd

◆ KeyDown()

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, ICheckBox::DisabledEvents

◆ KeyPress()

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, ICheckBox::DisabledEvents

◆ KeyUp()

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, ICheckBox::DisabledEvents

◆ MClick()

void MClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
This event may be disabled.
See also
MDblClick, Click, RClick, XClick, ICheckBox::DisabledEvents

◆ MDblClick()

void MDblClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
This event may be disabled.
See also
MClick, DblClick, RDblClick, XDblClick, ICheckBox::DisabledEvents

◆ MouseDown()

void MouseDown ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]buttonThe pressed mouse button. Any of the values defined by VB's MouseButtonConstants enumeration or the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
MouseUp, Click, MClick, RClick, XClick, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ MouseEnter()

void MouseEnter ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration or the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
MouseLeave, MouseHover, MouseMove, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ MouseHover()

void MouseHover ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)
property

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 ICheckBox::HoverTime property.

Parameters
[in]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration or the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
MouseEnter, MouseLeave, MouseMove, ICheckBox::HoverTime, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ MouseLeave()

void MouseLeave ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration or the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
MouseEnter, MouseHover, MouseMove, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ MouseMove()

void MouseMove ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]buttonThe pressed mouse buttons. Any combination of the values defined by VB's MouseButtonConstants enumeration or the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
MouseEnter, MouseLeave, MouseDown, MouseUp, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ MouseUp()

void MouseUp ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]buttonThe released mouse button. Any of the values defined by VB's MouseButtonConstants enumeration or the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
MouseDown, Click, MClick, RClick, XClick, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ OLEDragDrop()

void OLEDragDrop ( IOLEDataObject data,
OLEDropEffectConstants effect,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
Don't forget to release any references that you hold to the data object.
See also
OLEDragEnter, OLEDragMouseMove, OLEDragLeave, MouseUp, ICheckBox::RegisterForOLEDragDrop, ICheckBox::FinishOLEDragDrop, OLEDropEffectConstants

◆ OLEDragEnter()

void OLEDragEnter ( IOLEDataObject data,
OLEDropEffectConstants effect,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
See also
OLEDragMouseMove, OLEDragLeave, OLEDragDrop, MouseEnter, ICheckBox::RegisterForOLEDragDrop, OLEDropEffectConstants

◆ OLEDragLeave()

void OLEDragLeave ( IOLEDataObject data,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
Don't forget to release any references that you hold to the data object.
See also
OLEDragEnter, OLEDragMouseMove, OLEDragDrop, MouseLeave, ICheckBox::RegisterForOLEDragDrop

◆ OLEDragMouseMove()

void OLEDragMouseMove ( IOLEDataObject data,
OLEDropEffectConstants effect,
SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
See also
OLEDragEnter, OLEDragLeave, OLEDragDrop, MouseMove, ICheckBox::RegisterForOLEDragDrop, OLEDropEffectConstants

◆ OwnerDraw()

void OwnerDraw ( OwnerDrawActionConstants  requiredAction,
OwnerDrawControlStateConstants  controlState,
LONG  hDC,
RECTANGLE drawingRectangle 
)
property

The control must be drawn

Will be fired if the Style property is set to sOwnerDrawn and the control needs to be drawn.

Parameters
[in]requiredActionSpecifies the required drawing action. Any combination of the values defined by the OwnerDrawActionConstants enumeration is valid.
[in]controlStateSpecifies the control's current state (focused, selected etc.). Any combination of the values defined by the OwnerDrawControlStateConstants enumeration are valid.
[in]hDCThe handle of the device context in which all drawing should take place.
[in]drawingRectangleThe bounding rectangle of the area that must be drawn.
See also
ICheckBox::Style, CustomDraw, RECTANGLE, OwnerDrawActionConstants, OwnerDrawControlStateConstants

◆ RClick()

void RClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
This event may be disabled.
See also
ContextMenu, RDblClick, Click, MClick, XClick, ICheckBox::DisabledEvents

◆ RDblClick()

void RDblClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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]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.
Remarks
This event may be disabled.
See also
RClick, DblClick, MDblClick, XDblClick, ICheckBox::DisabledEvents

◆ RecreatedControlWindow()

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, ICheckBox::hWnd

◆ ResizedControlWindow()

void ResizedControlWindow ( void  )

The control window was resized

Will be fired after the control window was resized.

◆ XClick()

void XClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

The user clicked into the control's client area

Will be fired if the user clicks into the control's client area using one of the extended mouse buttons.

Parameters
[in]buttonThe mouse buttons that were pressed during the click. This should always be a constant defined by the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
XDblClick, Click, MClick, RClick, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents

◆ XDblClick()

void XDblClick ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
)

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 one of the extended mouse buttons.

Parameters
[in]buttonThe mouse buttons that were pressed during the double-click. This should be a constant defined by the ExtendedMouseButtonConstants 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.
Remarks
This event may be disabled.
See also
XClick, DblClick, MDblClick, RDblClick, ExtendedMouseButtonConstants, ICheckBox::DisabledEvents