Export (0) Print
Expand All

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 flag Value Description
HS_NOFITTOWINDOW 0x0001 Disables 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_CONTEXTMENU 0x0002 Enables 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_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

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.


Show:
© 2014 Microsoft