DTM_BROWSERDISPATCH

4/8/2010

The DTM_BROWSERDISPATCH message is sent by an application to the HTML viewer control to request a reference to its IDispatch interface.

Syntax

DTM_BROWSERDISPATCH
  wParam = 0;
  lParam = (LPARAM)(IDISPATCH) pDisp;

Parameters

  • wParam
    Not used.
  • pDisp
    [out] Reference to the HTML viewer control's IDispatch interface.

Return Value

Returns the HTML viewer control's IDispatch pointer. Use it to call QueryInterface(IID_IBrowser, &pBrowser) to retrieve the HTML viewer control's IBrowser interface.

Remarks

IBrowser, IBrowser2 and IBrowser3 are deprecated and will not be supported in future versions. Instead use IWebBrowser2 and DWebBrowserEvents2.

The following example shows how you might use this message.

SendMessage(hwndHTML, DTM_BROWSERDISPATCH, 0, (LPARAM) &pDisp);

Requirements

Header htmlctrl.h
Library htmlctrl.lib
Windows Mobile Pocket PC for Windows Mobile 2003 and later, Smartphone for Windows Mobile 2003 and later

See Also

Reference

HTML Control API Messages