Help Center

CToolbar.GetBitmapmethod

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

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION GetBitmap (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS LONG

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button whose bitmap index is to be retrieved.

Return value

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

Description

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

Reference

  • Include file CToolbar.inc
  • Defined in AfxNova/CToolbar.inc:425
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class