Backspace problem in MFC ActiveX in IE
-
Hi Gurus, I have an ActiveX control that has an Edit control inside. I have embeded this control in IE. the problem is when i try to delete some text in Edit control using backspace key the browser takes me to the previous page instead of Erasing the text in Edit control. Does any one know how to deal with this situation please its urgent thanks Muhammad Azam
-
Hi Gurus, I have an ActiveX control that has an Edit control inside. I have embeded this control in IE. the problem is when i try to delete some text in Edit control using backspace key the browser takes me to the previous page instead of Erasing the text in Edit control. Does any one know how to deal with this situation please its urgent thanks Muhammad Azam
Try handling the keystroke in the
IOleInPlaceActiveObject::TranslateAccelerator
method of your control. To test if this is the problem make an implementation that just returnsS_OK
and see if this stops IE from processing the keystroke when your control is active (it will...). I'm not sure how you've implemented your control (ATL, MFC, straight Win32, etc) so I can't be more specific. Steve -
Try handling the keystroke in the
IOleInPlaceActiveObject::TranslateAccelerator
method of your control. To test if this is the problem make an implementation that just returnsS_OK
and see if this stops IE from processing the keystroke when your control is active (it will...). I'm not sure how you've implemented your control (ATL, MFC, straight Win32, etc) so I can't be more specific. Stevethanks steve i will evaluate the posibility that u suggested Azam