Click to See Complete Forum and Search --> : Key Accelerator Visual.Net


lyar1031
January 2nd, 2004, 12:33 PM
I am using Visual.Net and I addded an accelerator to using resource View by adding a new resource.

I want added the Key combination of a SHIFT VK_UP

Next added the event handler and called it OnShiftUp() and this function is not being called on the Key COmbination of SHIFT VK_UP. This is a Dialog Application. Can anyone tell me why?


Thanks!!

lyar1031
January 2nd, 2004, 05:34 PM
Ok could the fact that the accel. Keys defined are not working because I Overide PretranslateMsg() in my class? I guess this is an easy thing to check. Remove PretranslateMsg() and see if it recogonizes the accel Key Sequence!!!

gstercken
January 2nd, 2004, 05:40 PM
Originally posted by lyar1031
This is a Dialog Application. Can anyone tell me why?Have a look at this FAQ (http://www.codeguru.com/forum/showthread.php?s=&threadid=267664).

Andreas Masur
January 2nd, 2004, 05:58 PM
[Moved thread]

lyar1031
January 2nd, 2004, 06:20 PM
Thanks Guys...I can handle it another way. I can use the GetKeyState(VK_SHIFT) in PretranslateMsg to hanlde this stuff I guess!!