2.2.6.7.3 Control::Measure

Description

measure width and height of a text string in the current control

Syntax

int Measure( LPCSTR lpcszText, int * pWdith, BOOL bSingleLine = false )

Parameters

lpcszText
[input] text to measure
pWdith
[input] optional argument to receive width, and if bSingleLine = false, must initialize with control width
bSingleLine
true will not require pWidth, but if false, will use pWidth to measure height

Return

height of text, return value is enough to show entire text string comfortablly.

Examples

Remark

See Also

Header to Include

Control.h