Поделиться через


CControlBar::SetBorders

Call this function to set the size of the control bar's borders.

void SetBorders(
   int cxLeft = 0,
   int cyTop = 0,
   int cxRight = 0,
   int cyBottom = 0 
);
void SetBorders(
   LPCRECT lpRect 
);

Параметры

  • cxLeft
    The width (in pixels) of the control bar's left border.

  • cyTop
    The height (in pixels) of the control bar's top border.

  • cxRight
    The width (in pixels) of the control bar's right border.

  • cyBottom
    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.

Пример

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:

CControlBar& m_myControlBar    = m_Rebar;
m_myControlBar.SetBorders(2, 5, 2, 5);

Требования

Header: afxext.h

См. также

Основные понятия

CControlBar Class

CControlBar Members

Hierarchy Chart

CControlBar::GetBorders