Question

I have an MFC CDialog with an IWebBrowser2 in it. I get to a page that has a HTML text area, I can input text but backspace doesn't erase it.

Was it helpful?

Solution

When an ATL ActiveX control that subclasses an edit control is hosted in Internet Explorer, pressing the BACKSPACE key when focus is set to the Edit control causes Internet Explorer to navigate to the previous Web page. If there are no Web pages previous to the one with the control, the BACKSPACE key functions as normal.

When the user clicks on the subclassed control, the control is not UI Activated. This means that any accelerator keys are processed by the Internet Explorer frame. The control is never given a change to process the BACKSPACE accelerator key.

refer: http://support.microsoft.com/kb/190044

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top