How to disable the default pop-up menu for CHtmlView in Visual C++ (236312)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
This article was previously published under Q236312 SUMMARY Create a default CHtmlView Appwizard application. When you
right-click on any Web site in Microsoft Internet Explorer, a default pop-up
menu appears. Driller (MFC) Sample from Microsoft shows how to override this
behavior for the WebBrowser Control so that pop-up menu does not appear. You
might disable this pop-up menu if you do not want users to view the Web page's
source or properties, or use other features such as the Back and Forward
buttons. Or, if you want to add your own functionality to the pop-up menu, you
must also disable the default pop-up menu.
Note Driller (MFC) Sample shows how to override this behavior only for
the WebBrowser Control. It does not use the CHtmlView class. REFERENCESDriller
(MFC) Sample
Modification Type: | Major | Last Reviewed: | 9/2/2005 |
---|
Keywords: | kbDHTML kbhowto kbieObj kbMenu kbWebBrowser KB236312 kbAudDeveloper |
---|
|