PreTranslateMessage method is missing
C / C++ / MFC
2
Posts
2
Posters
7
Views
1
Watching
-
hi, VS=2015 in my mfc dialog class that is inherited from CDialogEx, i can find PreTranslateMessage method?. I select the myDlg class, and there is no such method. Need it for some char exclusions inside edit box. There is no Onchar method for edit box either.
-
hi, VS=2015 in my mfc dialog class that is inherited from CDialogEx, i can find PreTranslateMessage method?. I select the myDlg class, and there is no such method. Need it for some char exclusions inside edit box. There is no Onchar method for edit box either.
Open ClassWizard and and add virtual method PreTranslateMessage. Then select the message WM_CHAR to handle it in OnChar