Message handling
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
hi all, i have a class derived from CDialogImpl<>,i want to catch the Message WM_Keydown, and identify if that key is esc then dont close the dialog. i have managed to do that in MFC application using Pretranslate function but that function is not working in ATL class, i have tried to override DialogProc() but this function also not called, similaraly other option like CMessage::PreTranslateMessage and but same result these function are not called. how to get equalent of MFC's PreTranslateMessage() in this class. thanks in advance.
Regards. Tasleem Arif