CButton::GetSplitSize
Retrieves the bounding rectangle of the drop-down component of the current split button control.
BOOL GetSplitSize(
LPSIZE pSize
) const;
Parameters
Parameter |
Description |
---|---|
[out] pSize |
Pointer to a SIZE structure that receives the description of a rectangle. |
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.
When the split button control is expanded, it can display a drop-down component such as a list control or pager control. This method retrieves the bounding rectangle that contains the drop-down component.
This method initializes the mask member of a BUTTON_SPLITINFO structure with the BCSIF_SIZE flag, and then sends that structure in the BCM_GETSPLITINFO message that is described in the Windows SDK. When the message function returns, this method retrieves the bounding rectangle from the size member of the structure.
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.