BCGControlBar Pro for MFC
int CBCGPMultiLinkCtrl::GetIdealSize ( int  cxMaxWidth,
SIZE *  pSize 
) const

Retrieves the preferred size of a link for the specified width.

Parameters
cxMaxWidthThe maximum width of the link, in pixels.
pSizeA pointer to a Windows SIZE structure. When this method returns, the cy member of the SIZE structure contains the ideal link text height for the link text width that is specified by cxMaxWidth.
Returns
The ideal height (same as pSize->cy).