HTML Control API Window StylesSend 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
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.
|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.
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.|
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Send Feedback on this topic to the authors