Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DTM_ADDSTYLE

Windows Mobile 6.5
4/8/2010

The DTM_ADDSTYLE message is sent by an application to the HTML viewer control to request that default style sheet rules be applied to the current HTML window.


DTM_ADDSTYLE
  wParam = 0
  lParam = (LPARAM)(LPCWSTR) pszStyle;

wParam

Not used

pszStyle

Reference to a string that contains the style sheet rules to add to the current HTML window

Style sheet rules applied with DTM_ADDSTYLE are reset with the message DTM_CLEAR. Style sheet rules are also reset with the message DTM_NAVIGATE. Sending DTM_ADDSTYLE messages does not affect pages that are navigated to with the message DTM_NAVIGATE.

The following example shows how you might use this message.

LPCWSTR pszStyle = TEXT("BODY { border-color: red; border-width: 2px; 
                   border-style: solid; }");
SendMessage(hwndHTML, , 0, (LPARAM)pszStyle);

Headerhtmlctrl.h
Libraryhtmlctrl.lib
Windows MobilePocket PC for Windows Mobile 2003 and later, Smartphone for Windows Mobile 2003 and later

Community Additions

Show:
© 2015 Microsoft