CODTextComponent::GrowToText

voidCODTextComponent::GrowToText(const OD_CONTROL_POINTctlPt, CDC*pDC)

Calculate the bounding points so that the width/height are greater than or equal to the size of the text.

Defined in: OdTextComp.cpp

Parameters

ctlPt

Control point to act as anchor.

pDC

Device context used to calculate text extent.

Comments

This function calls  CalcTextBorder,  CalcTextMargins, and  CalcTextSize to determine the minimum bounding text box for the component. It calls  SetTextBox to increase the size of the component, if needed.