共用方式為


CMFCToolBarEditBoxButton::GetEditBox

Returns a pointer to the CEdit Class control that is embedded in the button.

CEdit* GetEditBox() const;

Return Value

A pointer to the CEdit Class control that the button contains. It is NULL if the CEdit control has not been created yet.

Remarks

You create the CEdit control by calling CMFCToolBarEditBoxButton::CreateEdit.

Requirements

Header: afxtoolbareditboxbutton.h

See Also

Reference

CMFCToolBarEditBoxButton Class

Hierarchy Chart

CEdit Class