Help Center

CToolbar.ReplaceBitmapmethod

Replaces an existing bitmap with a new bitmap.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION ReplaceBitmap (BYVAL hToolbar AS HWND, BYVAL ptbrb AS TBREPLACEBITMAP PTR) AS BOOLEAN
FUNCTION ReplaceBitmap (BYVAL hToolbar AS HWND, BYREF tbrb AS TBREPLACEBITMAP) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
ptbrbPointer to a TBREPLACEBITMAP structure that contains the information of the bitmap to be replaced and the new bitmap.
tbrbA TBREPLACEBITMAP structure that contains the information of the bitmap to be replaced and the new bitmap.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Replaces an existing bitmap with a new bitmap.

Reference

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