CControlBar::SetBorders

void SetBorders( int cxLeft, int cyTop, int cxRight, int cyBottom );

void SetBorders( LPCRECT lpRect );

Parameters

cxLeft

The width (in pixels) of the control bar’s left border.

cxTop

The height (in pixels) of the control bar’s top border.

cxRight

The width (in pixels) of the control bar’s right border.

cxBottom

The height (in pixels) of the control bar’s bottom border.

lpRect

A pointer to a CRect object that contains the current width (in pixels)of each border of the control bar object.

Remarks

Call this function to set the size of the control bar’s borders. For instance, the following code example sets the top and bottom borders of the control bar to 5 pixels, and the left and right borders to 2 pixels:

m_myControlBar.SetBorders(2, 5, 2, 5);

CControlBar OverviewClass MembersHierarchy Chart

See Also   CControlBar::GetBorders