Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   PreTranslteMessage() (http://www.go4expert.com/forums/pretransltemessage-t10062/)

sampathkambar 16Apr2008 10:26

PreTranslteMessage()
 
Hi,

I want to implement keyBoard shortcuts like ( Alt+p,Alt+L...).
I hav implemented a dialog based appplication.And i want to implement those shortcuts for my controls on dialog box.

Kindly hellp.
Thanks in advance.

Rgds,
Sampath

shabbir 16Apr2008 11:25

Re: PreTranslteMessage()
 
You have 2 options

1. Go for the keypress / Keydown event
2. Handle the WndProc for the Keyboard events

sampathkambar 17Apr2008 08:44

Re: PreTranslteMessage()
 
Thanks for ur reply...

I got that in PreTranslateMessage() only.....
Only i needed to check is whether it is WM_SYSKEYDOWN or WM_KEYDOWN....



Rgds,
Sampath


All times are GMT +5.5. The time now is 12:54.