Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FindWindow question Pin
skinnyreptile1686-Dec-05 13:00
skinnyreptile1686-Dec-05 13:00 
GeneralRe: FindWindow question Pin
Blake Miller6-Dec-05 15:56
Blake Miller6-Dec-05 15:56 
GeneralRe: FindWindow question Pin
Jörgen Sigvardsson7-Dec-05 7:06
Jörgen Sigvardsson7-Dec-05 7:06 
GeneralRe: FindWindow question Pin
Jörgen Sigvardsson7-Dec-05 7:09
Jörgen Sigvardsson7-Dec-05 7:09 
GeneralRe: FindWindow question Pin
ThatsAlok6-Dec-05 19:05
ThatsAlok6-Dec-05 19:05 
QuestionCImageList question ... Pin
Maximilien6-Dec-05 10:32
Maximilien6-Dec-05 10:32 
AnswerRe: CImageList question ... Pin
Jörgen Sigvardsson6-Dec-05 10:47
Jörgen Sigvardsson6-Dec-05 10:47 
QuestionHow do I capture "Enter" Key in an Edit Control? Pin
Jethro636-Dec-05 7:57
Jethro636-Dec-05 7:57 
Hi:

I am trying to do what I thought would be a simple thing. I have a dialog which contains a variety of controls. One of my controls is an edit box. When a user is entering data through this control, I would like the user to be able to press the "ENTER" key to accept what has been entered.

I understand that dialogs will execute their DEFAULT button when "ENTER" is pressed but I THOUGHT that if I derived a new CMyEdit from CEdit and found the right function to override, I would be able to intercept the "ENTER" key and have it process the input instead. I must find a way to do this because I have users that feel that pressing enter after making an entry into a control like this is a natural thing to do and it is natural to expect that the input should be processed at that point. Frankly, I somewhat agree...

Is it my imagination or is this impossible? I have overridden every CEdit virtual function that I can find and NONE of them are called when I press "ENTER". Some of them are called if I press other keys, but not "ENTER".

What gives? What am I doing wrong?

Thanks in advance for your help!
Mark

-- modified at 14:33 Tuesday 6th December, 2005
AnswerRe: How do I capture <RETURN> in an Edit Control? Pin
David Crow6-Dec-05 8:18
David Crow6-Dec-05 8:18 
GeneralRe: How do I capture "Enter" key in an Edit Control? Pin
Jethro636-Dec-05 8:33
Jethro636-Dec-05 8:33 
GeneralRe: How do I capture "Enter" key in an Edit Control? Pin
David Crow6-Dec-05 8:38
David Crow6-Dec-05 8:38 
GeneralRe: How do I capture ENTER key in an Edit Control? Pin
Jethro636-Dec-05 8:47
Jethro636-Dec-05 8:47 
GeneralRe: How do I capture ENTER key in an Edit Control? Pin
Nish Nishant6-Dec-05 9:02
sitebuilderNish Nishant6-Dec-05 9:02 
GeneralRe: How do I capture ENTER key in an Edit Control? Pin
Jethro636-Dec-05 9:06
Jethro636-Dec-05 9:06 
GeneralRe: How do I capture ENTER key in an Edit Control? Pin
Jörgen Sigvardsson6-Dec-05 13:07
Jörgen Sigvardsson6-Dec-05 13:07 
QuestionForce window on top Pin
Shay Harel6-Dec-05 6:34
Shay Harel6-Dec-05 6:34 
QuestionRe: Force window on top Pin
David Crow6-Dec-05 7:01
David Crow6-Dec-05 7:01 
AnswerRe: Force window on top Pin
Shay Harel6-Dec-05 7:57
Shay Harel6-Dec-05 7:57 
GeneralRe: Force window on top Pin
David Crow6-Dec-05 8:17
David Crow6-Dec-05 8:17 
GeneralRe: Force window on top Pin
Shay Harel6-Dec-05 8:32
Shay Harel6-Dec-05 8:32 
GeneralRe: Force window on top Pin
Blake Miller6-Dec-05 9:43
Blake Miller6-Dec-05 9:43 
QuestionIsBadReadPtr vs IsBadStringPtr Pin
Chintoo7236-Dec-05 6:11
Chintoo7236-Dec-05 6:11 
AnswerRe: IsBadReadPtr vs IsBadStringPtr Pin
David Crow6-Dec-05 7:03
David Crow6-Dec-05 7:03 
AnswerRe: IsBadReadPtr vs IsBadStringPtr Pin
Jörgen Sigvardsson6-Dec-05 12:59
Jörgen Sigvardsson6-Dec-05 12:59 
QuestionMS Access locking Problem Pin
zinc_z6-Dec-05 5:05
zinc_z6-Dec-05 5:05 

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.