Delen via


CCommandManager::SetCmdImage

Creates a new association between a command ID and an image index.

void SetCmdImage(
    UINT uiCmd,
    int iImage,
    BOOL bUserImage
);

Parameters

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

  • [in] iImage
    The index of a control image.

  • [in] bUserImage
    TRUE to associate the command ID with a user-defined image; FALSE to associate the command ID with a global image.

Requirements

Header: afxcommandmanager.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CCommandManager Class