TrapMessage Event

Applies to:  Subclasser object, PowerForm control
See also:  SetTrap method, ClearTrap method, Event Index

Occurs when the subclassed window receives a message for which a trap was previously set by a call to SetTrap.

Syntax:

Private Sub object_TimeChange(ByVal Message As Long, ByVal wParam As Long, ByVal lParam As Long, Cancel As Boolean)

The TrapMessage event syntax has these parts:

Part Description
object The name of an object in the Applies to list.  If object is a SubClasser object, then the object must be declared using WithEvents.
Message The uMsg for the message that has been trapped.
wParam The wParam parameter for the message that has been trapped.
lParam The lParam parameter for the message that has been trapped.
Cancel A boolean value indicating whether normal processing of the message will be cancelled.

 

Home

Copyright and Disclaimer