HTML Control API Messages

4/8/2010

The following table shows Windows Mobile Standard messages supported for HTML Control.

Note

The HTML Viewer Control uses the Apartment Threaded threading model. You must ensure that all HTML control messages sent to each instance of the HTML Viewer Control come from the same thread that created that HTML Viewer Control. For more information about the HTML Viewer Control, see HTML Control API, and About the Webview Browser Object in the Windows CE .NET 4.2 help system.

Message Description

DTM_ADDSTYLE

Sent by an application to the HTML viewer control to request that default style sheet rules be applied to the current HTML window

DTM_ADDTEXT

Sent by an application to add text to the HTML Control

DTM_ADDTEXTW

Sent by an application to add Unicode text to the HTML control

DTM_ANCHOR

Sent by an application to tell the HTML control to jump to the indicated anchor

DTM_ANCHORW

Sent by an application to tell the HTML control to jump to the indicated anchor

DTM_BROWSERDISPATCH

Sent by an application to the HTML viewer control to request a reference to its IDispatch interface

DTM_CLEAR

Sent by an application to clear the contents of the HTML control

DTM_ENABLECLEARTYPE

Sent by an application to enable or disable ClearType for HTML text rendering

DTM_ENABLESCRIPTING

Sent by an application to enable or disable scripting for the HTML control

DTM_ENDOFSOURCE

Sent by an application to inform the HTML control that the document is complete

DTM_IMAGEFAIL

Sent by an application to inform the HTML control that the image indicated by the cookie could not be loaded

DTM_ISSELECTION

Sent by an application to determine whether some text was selected in the HTML control

DTM_LAYOUTHEIGHT

Sent by an application to determine the layout height, in pixels, of the content in the HTML control

DTM_LAYOUTWIDTH

Sent by an application to determine the layout width, in pixels, of the content in the HTML control

DTM_NAVIGATE

Sent by an application to browse to a particular URL or local file in the HTML control

DTM_SELECTALL

Sent by an application to tell an HTML viewer control to select all the text in the current HTML page

DTM_SETIMAGE

Sent by an application to associate a bitmap with an image

DTM_STOP

Sent by an application to STOP a navigation started in the HTML control

DTM_ZOOMLEVEL

Sent by an application to specify the zoom level (0-4)

The following table shows Windows Mobile Professional messages supported for HTML Control:

Message Description

DTM_ADDSTYLE

Sent by an application to the HTML viewer control to request that default style sheet rules be applied to the current HTML window

DTM_ADDTEXT

Sent by an application to add text to the HTML Control

DTM_ADDTEXTW

Sent by an application to add Unicode text to the HTML control

DTM_ANCHOR

Sent by an application to tell the HTML control to jump to the indicated anchor

DTM_ANCHORW

Sent by an application to tell the HTML control to jump to the indicated anchor

DTM_BROWSERDISPATCH

Sent by an application to the HTML viewer control to request a reference to its IDispatch interface

DTM_CLEAR

Sent by an application to clear the contents of the HTML control

DTM_ENABLECLEARTYPE

Sent by an application to enable or disable ClearType for HTML text rendering

DTM_ENABLECONTEXTMENU

Sent by an application to enable or disable the context-sensitive menu for the HTML control

DTM_ENABLESCRIPTING

Sent by an application to enable or disable scripting for the HTML control

DTM_ENDOFSOURCE

Sent by an application to inform the HTML control that the document is complete

DTM_IMAGEFAIL

Sent by an application to inform the HTML control that the image indicated by the cookie could not be loaded

DTM_ISSELECTION

Sent by an application to determine whether some text was selected in the HTML control

DTM_LAYOUTHEIGHT

Sent by an application to determine the layout height, in pixels, of the content in the HTML control

DTM_LAYOUTWIDTH

Sent by an application to determine the layout width, in pixels, of the content in the HTML control

DTM_NAVIGATE

Sent by an application to browse to a particular URL or local file in the HTML control

DTM_SELECTALL

Sent by an application to tell an HTML viewer control to select all the text in the current HTML page

DTM_SETIMAGE

Sent by an application to associate a bitmap with an image

DTM_STOP

Sent by an application to STOP a navigation started in the HTML control

DTM_ZOOMLEVEL

Sent by an application to specify the zoom level (0-4)

See Also

Concepts

HTML Control API