BCGControlBar Pro for MFC
int CBCGPCaptionBar::GetMargin ( ) const
inline

Returns the distance between edges of the caption bar elements and edges of the caption bar control.

Returns
Distance, in pixels, between edges of elements and edges of control.

Call this member function to retrieve the distance between edges of the caption bar elements and edges of the caption bar control. This distance is the same for all edges (left, right, top, bottom). The default value is 4 pixels (when DPI is 100%).

You can set the margin by SetMargin().