Share via


CMFCToolBar::StretchPane

Stretches the toolbar vertically or horizontally, and repositions the buttons if necessary.

virtual CSize StretchPane(
   int nLength,
   BOOL bVert
);

Parameters

  • [in] nLength
    The amount, in pixels, by which to stretch the pane.

  • [in] bVert
    If TRUE, stretches the pane vertically. If FALSE, stretches the pane horizontally.

Return Value

CSize object that specifies the size of the toolbar client area.

Remarks

This method calls CMFCToolBar::WrapToolBar to reposition the buttons within the stretched toolbar.

The return value is determined by calling CMFCToolBar::CalcSize.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart