Share via


CCommandManager::EnableMenuItemImage

Determines whether the command ID is associated with an image.

void EnableMenuItemImage(
    UINT uiCmd,
    BOOL bEnable = TRUE,
    int nUserImage = -1
);

Parameters

  • [in] uiCmd
    The command ID of a control.

  • [in] bEnable
    TRUE to associate the command ID with an image; FALSE to delete the association.

  • [in] nUserImage
    The index of a user-defined image.

Remarks

Command IDs that do not have an associated image are stored in a command list.

Requirements

Header: afxcommandmanager.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CCommandManager Class