Partager via


CMFCColorPopupMenu::CreateTearOffBar

Creates a dockable tear-off color bar.

virtual CPane* CreateTearOffBar(
   CFrameWnd* pWndMain,
   UINT uiID,
   LPCTSTR lpszName
);

Parameters

Parameter

Description

[in] pWndMain

Pointer to the parent window of the tear-off bar.

[in] uiID

The command ID of the tear-off bar.

[in] lpszName

The window text of the tear-off bar.

Return Value

A pointer to the new tear-off control bar object.

Remarks

This method creates a CMFCColorBar Class object and casts it to a CPane Class pointer. You can cast this value back to a CMFCColorBar Class pointer by using one of the casting macros described in Type Casting of MFC Class Objects.

Requirements

Header: afxcolorpopupmenu.h

See Also

Reference

CMFCColorPopupMenu Class

Hierarchy Chart

CFrameWnd Class

CMFCColorBar Class

Other Resources

Type Casting of MFC Class Objects