Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This message is sent by an application to determine the layout width (in pixels) of the client area.
Syntax
DTM_LAYOUTWIDTH wParam = 0; lParam = 0; |
Parameters
None.
Return Value
The value is the width (in pixels) of the client area.
Remarks
The layout width number changes depending on whether a scroll bar appears (changing the width of the client area), and it is independent of the characters and strings that are being added to the page.
When the text width is larger than the client area (for example a large word than can not be wrapped), this message returns the width (in pixels) occupied by the text.
When the text width is smaller than the client area, this message returns the width (in pixels) of the client area.
If there is a blank page or when "blank page" == DTM_CLEAR, both width and height should be 0 and DTM_LAYOUTWIDTH returns 0.
The following example shows how you might use this message.
Copy Code | |
---|---|
lWidth=SendMessage(hWndCtrl, DTM_LAYOUTWIDTH, 0, 0); |
Requirements
Header | htmlctrl.h |
Library | htmlctrl.lib |
Windows Mobile | Pocket PC 2002 and later, Smartphone 2002 and later |