Compartilhar via


CMFCToolBarEditBoxButton::CreateEdit

Creates a new edit control in the button.

virtual CEdit* CreateEdit(
   CWnd* pWndParent,
   const CRect& rect 
);

Parameters

  • [in] pWndParent
    Specifies the parent window of the edit control. It must not be NULL.

  • [in] rect
    Specifies the edit control's size and position.

Return Value

A pointer to the newly created edit control; it is NULL if the control's creation and attachment fail.

Remarks

You construct a CMFCToolBarEditBoxButton Class object in two steps. First call the constructor, and then call CreateEdit, which creates the Windows edit control and attaches it to the CMFCToolBarEditBoxButton object.

Requirements

Header: afxtoolbareditboxbutton.h

See Also

Reference

CMFCToolBarEditBoxButton Class

Hierarchy Chart