Click here to Skip to main content
15,918,516 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Watchdog Pin
Richard Andrew x6426-May-12 17:42
professionalRichard Andrew x6426-May-12 17:42 
AnswerRe: Application Watchdog Pin
Ashish Tyagi 4029-May-12 19:41
Ashish Tyagi 4029-May-12 19:41 
QuestionTask Manager Pin
Bram van Kampen26-May-12 12:46
Bram van Kampen26-May-12 12:46 
AnswerRe: Task Manager Pin
Randor 26-May-12 13:07
professional Randor 26-May-12 13:07 
AnswerRe: Task Manager Pin
«_Superman_»26-May-12 17:23
professional«_Superman_»26-May-12 17:23 
GeneralRe: Task Manager Pin
Bram van Kampen27-May-12 4:44
Bram van Kampen27-May-12 4:44 
QuestionUsing namespace in VC6.0 ? Pin
Vaclav_26-May-12 6:53
Vaclav_26-May-12 6:53 
AnswerRe: Using namespace in VC6.0 ? Pin
jschell26-May-12 7:32
jschell26-May-12 7:32 
AnswerRe: Using namespace in VC6.0 ? Pin
Chris Losinger26-May-12 8:23
professionalChris Losinger26-May-12 8:23 
AnswerRe: Using namespace in VC6.0 ? Pin
Vaclav_26-May-12 14:51
Vaclav_26-May-12 14:51 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger26-May-12 17:48
professionalChris Losinger26-May-12 17:48 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_26-May-12 18:32
Vaclav_26-May-12 18:32 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger27-May-12 3:02
professionalChris Losinger27-May-12 3:02 
AnswerRe: Using namespace in VC6.0 ? Pin
Aescleal26-May-12 20:53
Aescleal26-May-12 20:53 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_26-May-12 23:50
Vaclav_26-May-12 23:50 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger27-May-12 2:57
professionalChris Losinger27-May-12 2:57 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_27-May-12 4:53
Vaclav_27-May-12 4:53 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger27-May-12 5:00
professionalChris Losinger27-May-12 5:00 
GeneralRe: Using namespace in VC6.0 ? Pin
Aescleal28-May-12 5:32
Aescleal28-May-12 5:32 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger28-May-12 5:54
professionalChris Losinger28-May-12 5:54 
GeneralRe: Using namespace in VC6.0 ? Pin
Aescleal28-May-12 5:29
Aescleal28-May-12 5:29 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_28-May-12 7:22
Vaclav_28-May-12 7:22 
QuestionBest Approach to process KeyStrokes in Rich Edit Pin
ForNow25-May-12 10:47
ForNow25-May-12 10:47 
AnswerRe: Best Approach to process KeyStrokes in Rich Edit Pin
«_Superman_»26-May-12 17:35
professional«_Superman_»26-May-12 17:35 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
JohnCz27-May-12 8:07
JohnCz27-May-12 8:07 
Superman:
I respectfully disagree.

quote: "The messages for keystrokes are WM_KEYDOWN and WM_KEYUP
These are directed to the parent dialog containing the control."


Unless dialog does not contain any controls, dialog window never gets focus, hence WN_KEYDOWN and WM_KEYUP messages are not sent to a dialog.

quote: "and then subclass the control from the InitDialog function of the dialog class using the SubclassDlgItem method."

It is possible to use SubclassDlgItem or SubclassWindow but it would be much easier to let the wizard do subclassing, by simply add variable of the CRichEditCtrl and later replace it with the derived class type.

ForNow:

Depending what is exactly you are trying to achieve, I think the best way to handle special keys is creating accelerators and add handlers to a CRichEditCtrl derived class.
JohnCz

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.