The information in this article applies to:
SYMPTOMSWhen an application creates the WebBrowser control in an MFC Regular DLL, tabbing within the WebBrowser control does not function correctly. CAUSEThe TAB key and other dialog navigation keys are not getting processed in the context of the DLL by the IsDialogMessage function. Consequently, the proper dialog events are not being generated for the WebBrowser control. RESOLUTIONIn the DLL that is hosting the WebBrowser control, override the PreTranslateMessage for the CWnd-derived class as follows:
Next, export a function that can be used by a controlling application to
call PreTranslateMessage as follows:
In the controlling application, override the PreTranslateMessage method of
your CView-derived class and call the FilterDllMsg as follows:
STATUSThis behavior is by design. MORE INFORMATION
Typically, the Web Browser Control is embedded in a dialog box or CView-
derived class that resides as part of a standard application. When moving
WebBrowser control hosting code into an MFC Regular DLL, certain problems
related to messages may occur.
REFERENCESFor additional information, please see the following article in the Microsoft Knowledge Base: Q165074 PRB: Keystroke Problems in CView/CWnd Web Browser ControlThe MFC sample that demonstrates this technique is called DLLTRACE and can be found at: Visual C++ Online Documentation: Developer Products; Visual C++; Visual C++ Samples; MFC Samples; Advanced MFC Samples; DLLTRACE Additional query words:
Keywords : kbcode kbIE500 AXSDKIEAutomation AXSDKWebBrowser |
Last Reviewed: April 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |