다음을 통해 공유


CToolBarCtrl::GetBitmap

Retrieves the index of the bitmap associated with a button in a toolbar.

int GetBitmap(
   int nID
) const;

Parameters

  • nID
    Command identifier of the button whose bitmap index is to be retrieved.

Return Value

Returns the index of the bitmap if successful, or zero otherwise.

Remarks

Implements the functionality of TB_GETBITMAP in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

Other Resources

CToolBarCtrl Members