Help Center

CButton.SetSplitGlyphSizemethod

Sets the split size (glyph area) of a split button (BCSIF_SIZE).

WindowsmethodCButton.incdocumented

Syntax

PRIVATE FUNCTION CButton.SetSplitGlyphSize (BYVAL hButton AS HWND, BYVAL cx AS LONG, BYVAL cy AS LONG) AS BOOLEAN

Parameters

NameDescription
hButtonHandle of the button control.
cxThe width of the glyph area.
cyThe height of the glyph area.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the split size (glyph area) of a split button.

Remarks

Use this message only with the BS_SPLITBUTTON and BS_DEFSPLITBUTTON button styles.

Examples

SetSplitGlyphSize (BYVAL hButton AS HWND, BYVAL cx AS LONG, BYVAL cy AS LONG) AS BOOLEAN

CButton.SetSplitGlyphSize(hButton, 30, 30)

Reference

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