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

GetTextExtentPoint32Wrap function

[GetTextExtentPoint32Wrap is available through Windows XP with Service Pack 2 (SP2). It might be altered or unavailable in subsequent versions. It is recommended to use GetTextExtentPoint directly instead.]

Computes the width and height of the specified string of text. This function wraps a call to GetTextExtentPoint.

Syntax


BOOL GetTextExtentPoint32Wrap(
  _In_   HDC hdc,
  _In_   LPCTSTR lpString,
  _In_   UINT cbCount,
  _Out_  LPSIZE lpSize
);

Parameters

hdc [in]

Type: HDC

A handle to the device context.

lpString [in]

Type: LPCTSTR

A pointer to a buffer that contains the text to be drawn. The string does not need to be zero-terminated, since cbCount specifies the length of the string.

cbCount [in]

Type: UINT

The length, in bytes, of the string pointed to by lpString.

Windows 95/98/Me: The maximum value for this parameter is 8192.

lpSize [out]

Type: LPSIZE

When this method returns, contains a pointer to a SIZE structure containing the dimensions of the string, in logical units.

Return value

Type: BOOL

Returns a nonzero value if successful; otherwise, 0.

To get extended error information, call GetLastError.

Remarks

GetTextExtentPoint32Wrap is not exported by name or declared in a public header file. To use it, you must use GetProcAddress and request ordinal 420 from ComCtl32.dll to obtain a function pointer.

For additional remarks, please see GetTextExtentPoint.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

DLL

Comctl32.dll (version 5.81 or later)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.