![]() |
how to handle keyboard message in XT |
Post Reply
|
| Author | |
Raj.krishnan
Groupie
Joined: 16 January 2006 Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Topic: how to handle keyboard message in XTPosted: 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/ |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Raj.krishnan
Groupie
Joined: 16 January 2006 Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
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/ |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 May 2006 at 8:29am |
|
Hi, So did you try PreTranslateMessage ? |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |