Condividi tramite


CToolBar::SetHeight

This member function sets the toolbar's height to the value, in pixels, specified in cyHeight.

void SetHeight(
   int cyHeight 
);

Parameters

  • cyHeight
    The height in pixels of the toolbar.

Remarks

After calling SetSizes, use this member function to override the standard toolbar height. If the height is too small, the buttons will be clipped at the bottom.

If this function is not called, the framework uses the size of the button to determine the toolbar height.

Requirements

Header: afxext.h

See Also

Concepts

CToolBar Class

CToolBar Members

Hierarchy Chart

CToolBar::SetSizes

CToolBar::SetButtonInfo

CToolBar::SetButtons