Command_SetImageProperty()

Examples


The Command_SetImageProperty() function sets the specified image defined for a command.

Syntax

Command_SetImageProperty(command_tag, property, dict_ID, image_ID)

Parameters

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:

[spacer]

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.

Return value

A boolean. The value true indicates the property was set, while the value false indicates it was not.

Comments

Use the Resource_GetID() function to retrieve the resource ID of a native picture.


Documentation Feedback