Partager via


CButton::GetSplitInfo

Retrieves parameters that determine how Windows draws the current split button control.

BOOL GetSplitInfo(
     PBUTTON_SPLITINFO pInfo
) const;

Parameters

Parameter

Description

[out] pInfo

Pointer to a BUTTON_SPLITINFO structure that receives information about the current split button control. The caller is responsible for allocating the structure.

Return Value

true if this method is successful; otherwise, false.

Remarks

Use this method only with controls whose button style is BS_SPLITBUTTON or BS_DEFSPLITBUTTON.

This method sends the BCM_GETSPLITINFO message, which is described in the Windows SDK. 

Requirements

Header: afxwin.h

This method is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

See Also

Reference

CButton Class

Hierarchy Chart

CButton::SetSplitInfo

BCM_GETSPLITINFO

Other Resources

CButton Members