Platform SDK: Agent

IAgentCommandsEx::SetDefaultID

HRESULT SetDefaultID(
   long dwID,  // default command's ID
);

Sets the ID of the default command in a Commands collection.

dwID
The ID for the Command to be set as the default.

This property sets the default Command object set in your Commands collection. The default command is bold in the character's pop-up menu. However, setting the default command does not actually change command handling or double-click events.

This property applies only to your client application's use of the character; the setting does not affect other clients of the character or other characters of your client application.

See Also

IAgentCommandsEx::GetDefaultID