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.
4/8/2010

This section lists all the available windows styles for HTML Viewer Control windows.

An HTML Viewer Control window is created by calling the Windows Embedded CE CreateWindowfunction with WC_HTMLpassed as the lpClassNameparameter. WC_HTMLis defined in htmlctrl.has TEXT("DISPLAYCLASS").

The styles listed in the following table can be combined with other windows styles and are passed as the dwStyleparameter of CreateWindow.

By default, the fit-to-window feature is turned on when an HTML Viewer Control window is created. This feature tries to fit all text horizontally in the window.

Window style flag Value Description

HS_NOFITTOWINDOW

0x0001

Disables the fit-to-window feature of the HTML control that tries to fit all text horizontally in the window.

The window style by default is fit-to-window.

HS_CONTEXTMENU

0x0002

Enables context menus for the HTML Control. This flag is ignored on Windows Mobile Standard.

The window style by default is with context menus disabled.

The HS_CONTEXTMENU style can be modified without closing the window by using DTM_ENABLECONTEXTMENU. See also NM_CONTEXTMENU.

HS_CLEARTYPE

0x0004

Enables ClearType for text rendered in the HTML Control.

The window style by default is with ClearType disabled.

The HS_CLEARTYPE style can be modified without closing the window by using DTM_ENABLECLEARTYPE.

HS_NOSCRIPTING

0x0008

Disables scripting for the HTML control.

The HS_NOSCRIPTING style can be modified without closing the window by using DTM_ENABLESCRIPTING.

HS_INTEGRALPAGING

0x0010

Enables the integral paging feature of the control that adds white space to the end of the document so that the last page is a full page.

HS_NOSCROLL

0x0020

Disables scrolling for the HTML control.

HS_NOIMAGES

0x0040

Disables images downloading and rendering in the HTML control.

The HS_NOIMAGES style can be modified without closing the window by using DTM_SETIMAGE. See also DTM_IMAGEFAIL; NM_INLINE_IMAGE.

Note:
When the page to load contains an image, the HTML control will not show it, but the notification NM_INLINE_IMAGE will be received anyway.

HS_NOSOUNDS

0x0080

Disables sounds (BGSOUND) from being downloaded and played by the HTML control.

The HS_NOSOUNDS style can be modified without closing the window by using NM_INLINE_SOUND.

HS_NOACTIVEX

0x0100

Disables ActiveX controls (that is, the OBJECT tag) in the HTML control.

HS_NOSELECTION

0x0200

Disables the ability to select text in the HTML control.

HS_NOFOCUSRECT

0x0400

Disables focus rectangles in the HTML control. A focus rectangle indicates that an object has input focus.

Requirements

Header htmlctrl.h
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also