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

    Use Keys in Active X Control

    How to use keys in Active X Control, running in
    IE, the keys is used by IE at first, like Arrow
    keys, Pgup, PgDn, Home, End...


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

    Re: Use Keys in Active X Control

    Try using hooks
    SetWindowsHookEx with keyboard hook

    This is interesting .. I should like to know more about this


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

    Re: Use Keys in Active X Control

    This works but the hook function needs to be a global one and there needs to be a exposed method to do the SetWindowsHookEx bit.

    I tried this as an ATL simple object but I gusess it should work as an ActiveX


  4. #4
    Join Date
    Apr 1999
    Posts
    24

    Re: Use Keys in Active X Control

    Usually with MFC ActiveX controls you overload PreTranslateMessage and add a switch for handling the keys you want, but I don't know if IE interferes or not.


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