Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to handle keyboard message in XT
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to handle keyboard message in XT

 Post Reply Post Reply
Author
Message
Raj.krishnan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 January 2006
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Raj.krishnan Quote  Post ReplyReply Direct Link To This Post Topic: how to handle keyboard message in XT
    Posted: 10 May 2006 at 3:01am

Hello ALL,

  Is there anyway to handle keyboard message without using RegisterHotKey of MFC for an application.  

Raj
Software Engineer
eGrabber Inc
http://vcfreax.blogspot.com/
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2006 at 8:39am

Hello,

Override CMainFrame::PreTranslateMessage and check if message == WM_KEYDOWN.

Don't forget call base method.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Raj.krishnan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 January 2006
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Raj.krishnan Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2006 at 9:05am

Hello Oleg,

  Thanks for the Reply . But in My case if I want to handle Ctrl+Shift+A  like SetWindowsHook how i would handle it in XT 

Raj
Software Engineer
eGrabber Inc
http://vcfreax.blogspot.com/
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2006 at 8:29am

Hi,

So did you try PreTranslateMessage ?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.