BCGControlBar Pro for MFC
void CBCGPControlBar::SetBorders ( LPCRECT  lpRect,
BOOL  bIsTransparent = FALSE 
)

Sets the border values of the control bar.

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:

Copy
m_myControlBar.SetBorders(CRect(2, 5, 2, 5));
Parameters
lpRectA pointer to a CRect object that contains the current width (in pixels) of each border of the control bar object.
bIsTransparentTRUE - the border is transparent.