Article ID: 247073 - Last Review: June 7, 2005 - Revision: 4.0 CustWBC.exe sample shows how to control the WebBrowser control that is embedded in an ATL HTML controlThis article was previously published under Q247073 SUMMARY CustWBC.exe is a sample that illustrates how you can
control the WebBrowser control that is embedded in an ATL HTML control. In
particular, the sample demonstrates three points:
MORE INFORMATIONThe
following file is available for download from the Microsoft Download
Center: CustWBC.exe
(http://download.microsoft.com/download/mastermfcvc60/sample/1.0/win98/en-us/custwbc.exe)
Release Date: May 17, 2000For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/
)
How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
The implementation of the HTML control actually requires
four separate objects: the control itself, the object that implements the IDocHostUIHandlerDispatch interface, the object that implements the extender methods, and
the object that implements the sink. You need all four objects because all of
them need to implement IDispatch.The IDocHostUIHandlerDispatch implementation returns E_NOTIMPL for most of the methods except the ShowContextMenu method. This method returns S_OK without displaying anything. This convinces the WebBrowser control that it doesn't need to do anything about the right button click. The sink only implements the Invoke method of IDispatch as follows: (c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Cosmin Radu, Microsoft Corporation. REFERENCESFor additional
information, click the article number below to view the article in the
Microsoft Knowledge Base: 202009
(http://support.microsoft.com/kb/202009/EN-US/
)
BUG: Error Accessing Window.external in ATL DHTML Control
APPLIES TO
| Article Translations
|

Back to the top
