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

    Intercepting Key strokes before children control receives them...

    Is there a way to intercept keystrokes before they go to the child controls? I need to update a tree control if F5 is pressed, but am not sure how to "intercept" this keystroke.

    Thanks,
    Jaime



  2. #2
    Join Date
    Apr 1999
    Posts
    3,585

    Re: Intercepting Key strokes before children control receives them...

    Try using PreTranslateMessage() to trap the messages. Then check for WM_KEYDOWN. I believe the lParam value is the key that was pressed.

    Gort...Klaatu, Barada Nikto!

  3. #3
    Guest

    Re: Intercepting Key strokes before children control receives them...

    Try subclassing for the tree control.


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