Help Center

CHeader.SetBitmapMarginmethod

Sets the width of the margin for a bitmap in an existing header control.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION SetBitmapMargin (BYVAL hHeader AS HWND, BYVAL iWidth AS DWORD) AS LONG

Parameters

NameDescription
hHeaderThe handle of the header control.
iWidthThe width, specified in pixels, of the margin that surrounds a bitmap within an existing header control.

Return value

Returns width of the bitmap margin in pixels. If the bitmap margin was not previously specified, the default value of 3*GetSystemMetrics (CX_EDGE) is returned.

Description

Sets the width of the margin for a bitmap in an existing header control.

Reference

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