다음을 통해 공유


CMFCToolBar::GetDefaultImage

Returns the index of the default image for a toolbar button with a specified command ID.

static int GetDefaultImage(
   UINT uiID 
);

Parameters

  • [in] uiID
    Specifies the command ID of the button.

Return Value

The index of the toolbar image in the shared list of images.

Remarks

Use this shared method to retrieve the index of the default image for a toolbar button with the specified command ID. The return value is an index into the shared collection of toolbar button images for all toolbars in the application. Call the CMFCToolBar::GetImages method to obtain a pointer to this collection.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::GetImages