CSplitButton::Create

Creates a split button control with specified styles and attaches it to the current CSplitButton object.

virtual BOOL Create(
    DWORD dwStyle, 
    const RECT& rect, 
    CWnd* pParentWnd, 
    UINT nID
);

Parameters

Parameter

Description

[in] dwStyle

A bitwise combination (OR) of styles to be applied to the control. For more information, see Button Styles.

[in] rect

A reference to a RECT structure that contains the position and size of the control.

[in] pParentWnd

A non-null pointer to a CWnd object that is the parent window of the control.

[in] nID

The ID of the control.

Return Value

true if this method is successful; otherwise, false.

Requirements

Header: afxcmn.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

CSplitButton Class

Hierarchy Chart