Expand
HTML Control API Window Styles
Send Feedback

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

An HTML Viewer Control window is created by calling the Windows CE CreateWindow function with WC_HTML passed as the lpClassName parameter. WC_HTML is defined in htmlctrl.h as TEXT("DISPLAYCLASS").

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

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

Window style flagValueDescription
HS_NOFITTOWINDOW0x0001Disables the fit-to-window feature of the HTML control that attempts to fit all text horizontally in the window.

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

HS_CONTEXTMENU0x0002Enables context menus for the HTML Control. This flag is ignored on Windows Mobile-based Smartphones.

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_CLEARTYPE0x0004Enables 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_NOSCRIPTING0x0008Disables scripting for the HTML control.

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

HS_INTEGRALPAGING0x0010Enables 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_NOSCROLL0x0020Disables scrolling for the HTML control.
HS_NOIMAGES0x0040Disables 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_NOSOUNDS0x0080Disables 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_NOACTIVEX0x0100Disables ActiveX controls (that is, the OBJECT tag) in the HTML control.
HS_NOSELECTION0x0200Disables the ability to select text in the HTML control.
HS_NOFOCUSRECT0x0400Disables focus rectangles in the HTML control. A focus rectangle indicates that an object has input focus.

Requirements

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

See Also

HTML Control API Constants | DTM_ENABLECLEARTYPE | DTM_ENABLECONTEXTMENU | DTM_ENABLESCRIPTING | DTM_IMAGEFAIL | DTM_SETIMAGE | NM_CONTEXTMENU | NM_INLINE_IMAGE | NM_INLINE_SOUND


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Page view tracker