Home
   Home  |  Preliminary Docs  |  Design Diagrams  |  Reference  |  Development Docs  |  Download  |  Source Code  |  Final Reports  |
ISolpackApp::EnableGameCommand Method

Enables or disables the user interface for a custom game command.

Syntax:

HRESULT EnableGameCommand(
   long lID,
   VARIANT_BOOL bEnable
);

Parameters:

lID
A game-defined long integer value specifying the ID of the command to change.
bEnable
A VARIANT_BOOL variable specifying whether to enable the command (VARIANT_TRUE) or disable it (VARIANT_FALSE).

Return Value:

Returns S_OK if successful, or an error value otherwise.

Remarks:

Solitaire Pack displays enabled commands to the user as a hyperlink within the game window. When a command is disabled, it is hidden from view.

When a command is first added, it is in the enabled state.

  February 24, 2002 jmhoersc@mtu.edu