CButton.SetSplitGlyphSizemethod
Sets the split size (glyph area) of a split button (BCSIF_SIZE).
Syntax
PRIVATE FUNCTION CButton.SetSplitGlyphSize (BYVAL hButton AS HWND, BYVAL cx AS LONG, BYVAL cy AS LONG) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hButton | Handle of the button control. | |
cx | The width of the glyph area. | |
cy | The 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