共用方式為


CMFCToolBarEditBoxButton::SetContentsAll

Finds a CMFCToolBarEditBoxButton Class object that has a specified command ID and sets the specified text within its text box.

static BOOL SetContentsAll(
   UINT uiCmd,
   const CString& strContents 
);

Parameters

  • [in] uiCmd
    Specifies the command ID of the control for which the text will be changed.

  • [in] strContents
    Specifies the new text to set.

Return Value

Nonzero if the text was set; 0 if the CMFCToolBarEditBoxButton control with the specified command ID does not exist.

Requirements

Header: afxtoolbareditboxbutton.h

See Also

Reference

CMFCToolBarEditBoxButton Class

Hierarchy Chart