Contents Index Topic Contents | ||
Previous Topic: BeforeNavigate2 Event Next Topic: DocumentComplete Event |
CommandStateChange Event
Description
Occurs when the enabled state of a command changes.
Syntax
Private Sub object_CommandStateChange (ByVal Command As Long,
ByVal Enable As Boolean)
Value Description object An object expression that evaluates to an object in the Applies To list. Command A long integer specifying the identifier of the command that changed. It can be one of the following constants or values.
Constant Value Meaning CSC_UPDATECOMMANDS -1 The enabled state of a toolbar button may have changed; the Enable parameter should be ignored. CSC_NAVIGATEFORWARD 1 The enabled state of the Forward button has changed. CSC_NAVIGATEBACK 3 The enabled state of the Back button has changed. Enable A Boolean value that is TRUE if the command is enabled, or FALSE if not.
Applies To
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.