共用方式為


DTM_LAYOUTHEIGHT

Send Feedback

This message is sent by an application to determine the layout height (in pixels) occupied by the text.

Syntax

DTM_LAYOUTHEIGHT
  wParam = 0;
  lParam = 0;

Parameters

None.

Return Values

The value is the height (in pixels) occupied by the text.

Remarks

The Pocket PC's layout height number increases when more lines are added to the page.

The layout height can be 10, 25, 40, ... 1160, and so on. The layout height does not depend on the client area, scroll bars, or any other visual effects.

If there is a blank page or when "blank page" == DTM_CLEAR, both width and height should be 0 and DTM_LAYOUTHEIGHT returns 0.

The following example shows how you might use this message.

lHeight=SendMessage(hWndCtrl, DTM_LAYOUTHEIGHT, 0, 0);

Requirements

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: htmlctrl.h
Library: htmlctrl.lib

See Also

HTML Control API Messages | DTM_LAYOUTWIDTH

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.