共用方式為


CMFCToolBarButton::SetRect

Sets the bounding rectangle of the button.

void SetRect(
   const CRect rect 
);

Parameters

  • [in] rect
    The new bounding rectangle of the button.

Remarks

This method calls the CMFCToolBarButton::OnMove method after it sets the new bounding rectangle.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart

CMFCToolBarButton::OnMove