Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CStatusBarCtrl::GetBorders

Visual Studio 6.0

CStatusBarCtrl::GetBorders

BOOL GetBorders( int* pBorders ) const;

BOOL GetBorders( int& nHorz, int& nVert, int& nSpacing ) const;

Return Value

Nonzero if successful; otherwise zero.

Parameters

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.

Remarks

Call this function to retrieve the status bar control’s current widths of the horizontal and vertical borders and of the space between rectangles. These borders determine the spacing between the outside edge of the control and the rectangles within the control that contain text.

Example

VERIFY( GetRect(1, &rectPane1) );

int borderArray[3];

VERIFY( GetBorders(borderArray) );

int nHorz, nVert, nSpacing;

VERIFY( GetBorders(nHorz, nVert, nSpacing) );

CStatusBarCtrl OverviewClass MembersHierarchy Chart

See Also   CStatusBarCtrl::GetParts, CStatusBarCtrl::SetParts

Show:
© 2015 Microsoft