AirBus
May 12th, 1999, 08:08 PM
I can't capture KEYDOWN message in COM running in IE, how to do?
|
Click to See Complete Forum and Search --> : How to get KEYDOWN message in COM running in IE AirBus May 12th, 1999, 08:08 PM I can't capture KEYDOWN message in COM running in IE, how to do? muscicapa May 12th, 1999, 10:46 PM Is it an ActiveX control or a windowless control ? AirBus May 13th, 1999, 01:02 AM It's an ActiveX Control muscicapa May 13th, 1999, 09:03 AM If it is an ATL activeX You need to put in the message map macro and the handler function, if it is MFC it is straighforward through the ClassWizard BEGIN_MSG_MAP(CYourControlClass) CHAIN_MSG_MAP CComControl<CYourControlClass>) MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown) DEFAULT_REFLECTION_HANDLER() END_MSG_MAP() // Handler prototypes: // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); / put the implementation as above. You may need to handle WM_CHAR just as above if you mean KEYDOWN. I suspect think this is not the answer to ur problem since this is rather trivial ! however .. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |