Share via


CMFCRibbonEdit::CreateEdit

Creates a new text box for the CMFCRibbonEdit Class object.

virtual CMFCRibbonRichEditCtrl* CreateEdit(
    CWnd* pWndParent,
    DWORD dwEditStyle 
);

Parameters

  • [in] pWndParent
    A pointer to the parent window of the CMFCRibbonEdit Class object.

  • [in] dwEditStyle
    Specifies the style of the text box. You can combine the window styles listed in the Remarks section with the edit control styles that are described in the Windows SDK.

Return Value

A pointer to the new text box if the method was successful; otherwise, NULL.

Remarks

Override this method in a derived class to create a custom text box.

You can apply the following Window Styles to a text box:

  • WS_CHILD

  • WS_VISIBLE

  • WS_DISABLED

  • WS_GROUP

  • WS_TABSTOP

Requirements

Header: afxRibbonEdit.h

See Also

Reference

CMFCRibbonEdit Class

Hierarchy Chart