The Command_SetImageProperty() function sets the specified image defined for a command.
Command_SetImageProperty(command_tag, property, dict_ID, image_ID)
• command_tag – The integer tag value for the command whose property is being set.
• property – An integer constant indicating the property to set. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
COMMAND_PROP_NORMAL_IMAGE |
Specifies the image displayed in the normal state. |
COMMAND_PROP_CHECKED_IMAGE |
Specifies the image displayed in the checked state. |
• dict_ID – An integer specifying the ID of the dictionary containing the image to use for the command.
• image_ID – An integer specifying the resource ID of the image (native picture) to use for the command.
A boolean. The value true indicates the property was set, while the value false indicates it was not.
Use the Resource_GetID() function to retrieve the resource ID of a native picture.