Partager via


DWebBrowserEvents2::CommandStateChange Event

Fires when the enabled state of a command changes.

Syntax

void CommandStateChange(
    long Command,
    VARIANT_BOOL Enable
);

Parameters

  • Command
    [in] A CommandStateChangeConstants enumeration value that specifies the command that changed.
  • Enable
    [in] A VARIANT_BOOL value that specifies the enabled state.
    • VARIANT_FALSE
      Command is disabled.
    • VARIANT_TRUE
      Command is enabled.

Return Value

No return value.

Event DISPID

DISPID_COMMANDSTATECHANGE

The DISPID for this event is defined in exdispid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.