Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GetTextExtentPoint32 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function computes the width and height of the specified string of text.

BOOL GetTextExtentPoint32( 
  HDC hdc, 
  LPCTSTR lpString, 
  int cbString, 
  LPSIZE lpSize
);

Parameters

hdc
[in] Handle to the device context (DC).
lpString
[in] Long pointer to the string of text. The string does not need to be zero-terminated because cbString specifies the length of the string.
cbString
[in] Integer that specifies the number of characters in the string.
lpSize
[out] Long pointer to a SIZE structure that receives the dimensions of the string.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

The GetTextExtentPoint32 function uses the currently selected font to compute the dimensions of the string. GetTextExtentPoint32 computes the width and height, in logical units, without considering any clipping.

Because some devices kern characters, the sum of the extents of the characters in a string does not always equal to the extent of the string.

The GetTextExtentPoint32 function is identical to the GetTextExtentPoint function.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

GetTextExtentPoint | SIZE


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.