The information in this article applies to:
SYMPTOMSTake a CHtmlView based application or have a dialog hosting a web browser control. Go to a local folder. Right-click and select either New Folder or one of the file types listed there. It will ASSERT in WinOcc.cpp, Line 331. This does not have any impact on the release build. CAUSEThis is due to a bug in MFC for UI activation of an ActiveX control. RESOLUTION
Override the PreTranslateMessage function in the dialog class or the one derived from CHtmlView. If the message is WM_RBUTTONDOWN, return 0. The code should look like this:
This eliminates the possibility of having a context menu for the container. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: CHtmlView
Keywords : kbActiveX kbContainer kbCtrl kbMFC kbWebBrowser |
Last Reviewed: June 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |