CAxis::GetPaddingSize


CSize GetPaddingSize( CDC *pDC );

Parameters

Returns

A CSize object representing the extent to which the axis tick labels will extend beyond the chart boundary. For a top or bottom axis, this is half the width of the left-most tick label plus half the width of the rightmost tick label, since those labels are aligned with the edge of the chart. For a left or right axis, this is the height of the text, since it will stick out half on top and half on bottom.

This function should be used to calculate the size of any chart such that the labels do not extend beyond the edge of the viewable area.


CAxis Reference | CPlot Reference