Article ID: 165074 - Last Review: August 18, 2005 - Revision: 1.1 PRB: Keystroke Problems in CView/CWnd WebBrowser ControlThis article was previously published under Q165074 SYMPTOMS
When the Web Browser control is embedded in a CView or CWnd class,
keystrokes do not work properly. You may notice following symptoms:
CAUSE
This functionality in CView and CWnd classes is by design. The CView and
Wnd classes do not carry the additional overhead necessary to forward these
keyboard messages to children for processing. It is necessary to add this
functionality to your derived class by using PreTranslateMessage.
RESOLUTION
Override PreTranslateMessage for the parent of the Web Browser Control as
follows:
STATUS
This behavior is by design.
MORE INFORMATION
Normally, the Web Browser Control is embedded in a dialog box or
CFormView. It is possible to dynamically create the control and embed it
in a CView or CWnd class. The IEZoom sample illustrates a method of doing
this.
For additional information, please see the following article(s) in the Microsoft Knowledge Base: 156693
(http://support.microsoft.com/kb/156693/EN-US/
)
IEZOOM.EXE Changes the Font Size of the Web Browser Control
APPLIES TO
| Article Translations
|

Back to the top
