|
-
May 12th, 1999, 08:08 PM
#1
How to get KEYDOWN message in COM running in IE
I can't capture KEYDOWN message in COM running in IE, how to do?
-
May 12th, 1999, 10:46 PM
#2
Re: How to get KEYDOWN message in COM running in IE
Is it an ActiveX control or a windowless control ?
-
May 13th, 1999, 01:02 AM
#3
Re: How to get KEYDOWN message in COM running in IE
-
May 13th, 1999, 09:03 AM
#4
Re: How to get KEYDOWN message in COM running in IE
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 ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|