Command_GetImageProperty()

Examples


The Command_GetImageProperty() function retrieves the specified image defined for a command.

Syntax

Command_GetImageProperty(command_tag, property, dict_ID, image_ID)

Parameters

command_tag – The integer tag value for the command whose property is being retrieved.

property – An integer constant indicating the property to retrieve. 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 – A returned integer that contains the ID of the dictionary containing the image used for the command.

image_ID – A returned integer containing the resource ID of the image used for the command.

Return value

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


Documentation Feedback