CStatusBarCtrl::GetBorders
Retrieves the status bar control's current widths of the horizontal and vertical borders and of the space between rectangles.
BOOL GetBorders(
int* pBorders
) const;
BOOL GetBorders(
int& nHorz,
int& nVert,
int& nSpacing
) const;
Параметры
pBorders
Address of an integer array having three elements. The first element receives the width of the horizontal border, the second receives the width of the vertical border, and the third receives the width of the border between rectangles.nHorz
Reference to an integer that receives the width of the horizontal border.nVert
Reference to an integer that receives the width of the vertical border.nSpacing
Reference to an integer that receives the width of the border between rectangles.
Возвращаемое значение
Nonzero if successful; otherwise zero.
Заметки
These borders determine the spacing between the outside edge of the control and the rectangles within the control that contain text.
Пример
RECT rectPane1;
VERIFY(m_wndSBC.GetRect(1, &rectPane1));
int borderArray[3];
VERIFY(m_wndSBC.GetBorders(borderArray));
int nHorz, nVert, nSpacing;
VERIFY(m_wndSBC.GetBorders(nHorz, nVert, nSpacing));
Требования
Header: afxcmn.h