Click here to Skip to main content
15,893,486 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCode Submission Pin
Danzy838-Jun-10 7:23
Danzy838-Jun-10 7:23 
AnswerRe: Code Submission Pin
David Crow8-Jun-10 7:27
David Crow8-Jun-10 7:27 
AnswerRe: Code Submission Pin
Maximilien8-Jun-10 7:29
Maximilien8-Jun-10 7:29 
GeneralRe: Code Submission Pin
Danzy838-Jun-10 7:33
Danzy838-Jun-10 7:33 
AnswerRe: Code Submission Pin
Richard MacCutchan8-Jun-10 11:04
mveRichard MacCutchan8-Jun-10 11:04 
QuestionGetting API Messages into C++ DLL Pin
ayaz.hassan8-Jun-10 5:52
ayaz.hassan8-Jun-10 5:52 
QuestionMessage Removed Pin
8-Jun-10 3:31
Schehaider_Aymen8-Jun-10 3:31 
AnswerRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 5:31
Aescleal8-Jun-10 5:31 
That key handler (provided you've got a message map entry for it) will only trap key downs for the form view. The edit control is a different window.

Your choices here are:

- find a WM_COMMAND from the edit control that does what you want and handle that in the form view
- derive a class from CEdit and reflect messages from the form view into the control. Do a search for MFC message reflection to see how this works.

(This[^] isn't too bad about message reflection but it might be out of date).

Cheers,

Ash
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 5:51
Schehaider_Aymen8-Jun-10 5:51 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 5:57
Aescleal8-Jun-10 5:57 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 6:02
Schehaider_Aymen8-Jun-10 6:02 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 7:06
Aescleal8-Jun-10 7:06 
GeneralRe: CEdit And OnKeyDown [modified] Pin
Schehaider_Aymen8-Jun-10 7:26
Schehaider_Aymen8-Jun-10 7:26 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 6:22
Schehaider_Aymen8-Jun-10 6:22 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 7:07
Aescleal8-Jun-10 7:07 
QuestionVS2010 - version and copyright and GetAdapters Pin
Ed SHaw8-Jun-10 1:21
Ed SHaw8-Jun-10 1:21 
AnswerRe: VS2010 - version and copyright and GetAdapters Pin
Richard MacCutchan8-Jun-10 3:49
mveRichard MacCutchan8-Jun-10 3:49 
GeneralRe: VS2010 - version and copyright and GetAdapters Pin
Ed SHaw8-Jun-10 7:12
Ed SHaw8-Jun-10 7:12 
GeneralRe: VS2010 - version and copyright and GetAdapters Pin
Richard MacCutchan8-Jun-10 9:17
mveRichard MacCutchan8-Jun-10 9:17 
QuestionRe: VS2010 - version and copyright and GetAdapters Pin
David Crow8-Jun-10 7:32
David Crow8-Jun-10 7:32 
AnswerRe: VS2010 - version and copyright and GetAdapters Pin
Ed SHaw8-Jun-10 8:07
Ed SHaw8-Jun-10 8:07 
Questioncatching access violation Pin
Sakhalean8-Jun-10 0:55
Sakhalean8-Jun-10 0:55 
AnswerRe: catching access violation Pin
Cedric Moonen8-Jun-10 1:12
Cedric Moonen8-Jun-10 1:12 
AnswerRe: catching access violation Pin
Jackson20108-Jun-10 3:14
Jackson20108-Jun-10 3:14 
AnswerRe: catching access violation Pin
Niklas L8-Jun-10 5:49
Niklas L8-Jun-10 5:49 

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.