CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    23

    How to get KEYDOWN message in COM running in IE

    I can't capture KEYDOWN message in COM running in IE, how to do?


  2. #2
    Join Date
    May 1999
    Location
    13 N 77 E
    Posts
    183

    Re: How to get KEYDOWN message in COM running in IE

    Is it an ActiveX control or a windowless control ?


  3. #3
    Join Date
    May 1999
    Posts
    23

    Re: How to get KEYDOWN message in COM running in IE

    It's an ActiveX Control


  4. #4
    Join Date
    May 1999
    Location
    13 N 77 E
    Posts
    183

    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&gt
    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
  •  





Click Here to Expand Forum to Full Width

Featured