Condividi tramite


CSplitButton::CSplitButton

Constructs a CSplitButton object. The constructor's parameters specify a submenu that is displayed when a user clicks the drop-down arrow of the split button control.

CSplitButton();
CSplitButton(
        UINT nMenuId, 
        UINT nSubMenuId
)
CSplitButton(
        CMenu* pMenu
)

Parameters

Parameter

Description

[in] nMenuId

The resource ID of the menu bar.

[in] nSubMenuId

The resource ID of a submenu.

[in] pMenu

A pointer to a CMenu object that specifies a submenu. The CSplitButton object deletes the CMenu object and its associated HMENU when the CSplitButton object goes out of scope.

Remarks

Use the CSplitButton::Create method to create a split button control and attach it to the CSplitButton object.

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

Concepts

CSplitButton Class

CSplitButton Members

Hierarchy Chart

CSplitButton::Create