Click here to Skip to main content
15,920,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Boolean Logic & comboBox Pin
John R. Shaw7-Nov-05 14:19
John R. Shaw7-Nov-05 14:19 
AnswerRe: Boolean Logic and comboBox Pin
Blubbo9-Nov-05 3:42
Blubbo9-Nov-05 3:42 
QuestionEdit Box Question Pin
Jethro637-Nov-05 8:47
Jethro637-Nov-05 8:47 
AnswerRe: Edit Box Question Pin
ddmcr7-Nov-05 8:57
ddmcr7-Nov-05 8:57 
GeneralRe: Edit Box Question Pin
Jethro637-Nov-05 10:12
Jethro637-Nov-05 10:12 
AnswerRe: Edit Box Question Pin
John R. Shaw7-Nov-05 14:00
John R. Shaw7-Nov-05 14:00 
GeneralRe: Edit Box Question Pin
Jethro637-Nov-05 14:14
Jethro637-Nov-05 14:14 
GeneralRe: Edit Box Question Pin
John R. Shaw7-Nov-05 15:05
John R. Shaw7-Nov-05 15:05 
Ya, I thought that might be the case. I find it a bit irritating myself, but it is normal behaviour for single-line edit controls, in a dialog box or on a Web page.

I do not beleave there is general method for accomplishing what you are trying to do.

You could subclass the edit controls and intercept the key strokes. That way you could negate the ones you don't want to be processed. You need to check if you want OnKeyDown() or OnChar(), I forget which you need (research). The problem with subclassing: (1) You have to generate (or manualy create) the subclass, and (2) remember to use it when ever you want that functionality.

That was a mouth full, and just touchs on what I am thinking.

What was recomended in the FAQ (as recommeded by someone else) is a good start, but it would include all controls (not just edit controls). But, here is a thouht, if you know what control you where in when ENTER was press (its ID) then you check the ID to see how to act in the OnOk() or OnCancel() functions.

P.S. This is a flaw that is every where (dialog boxes, the Web, etc...), we can stop it in the programs we write (w/a little effort), but all that will server to do: is futhur the confusion. Example: Enter address in you browser and press enter, and we go there (as expected). Enter something in a Web page or dialog box and hit enter, unless it is a multi-line edit box, we (have been programed to) expect something to happen. I know it's confusing a irritating, but we have to learn to accept it.

INTP
Every thing is relative...
QuestionMaking Stealth Input (hide from keyloggers) Pin
TheDen7-Nov-05 8:39
TheDen7-Nov-05 8:39 
AnswerRe: Making Stealth Input (hide from keyloggers) Pin
John R. Shaw7-Nov-05 15:32
John R. Shaw7-Nov-05 15:32 
QuestionMDI caret keyboard and mouse Pin
Richard_487-Nov-05 7:47
Richard_487-Nov-05 7:47 
AnswerRe: MDI caret keyboard and mouse Pin
John R. Shaw7-Nov-05 18:25
John R. Shaw7-Nov-05 18:25 
QuestionHelp with speeding up a log parser Pin
RobJones7-Nov-05 7:17
RobJones7-Nov-05 7:17 
AnswerRe: Help with speeding up a log parser Pin
Chris Losinger7-Nov-05 7:45
professionalChris Losinger7-Nov-05 7:45 
AnswerRe: Help with speeding up a log parser Pin
Maximilien7-Nov-05 7:55
Maximilien7-Nov-05 7:55 
GeneralRe: Help with speeding up a log parser Pin
David Crow7-Nov-05 8:06
David Crow7-Nov-05 8:06 
AnswerRe: Help with speeding up a log parser Pin
David Crow7-Nov-05 7:57
David Crow7-Nov-05 7:57 
AnswerThanks Pin
RobJones7-Nov-05 8:27
RobJones7-Nov-05 8:27 
Questionhelp for streaming using MCI Pin
V.G7-Nov-05 6:02
V.G7-Nov-05 6:02 
Questionabstract class problem Pin
followait7-Nov-05 5:36
followait7-Nov-05 5:36 
AnswerRe: abstract class problem Pin
Chris Losinger7-Nov-05 5:55
professionalChris Losinger7-Nov-05 5:55 
GeneralRe: abstract class problem Pin
followait7-Nov-05 14:45
followait7-Nov-05 14:45 
GeneralRe: abstract class problem Pin
Chris Losinger7-Nov-05 14:54
professionalChris Losinger7-Nov-05 14:54 
GeneralRe: abstract class problem Pin
followait7-Nov-05 19:19
followait7-Nov-05 19:19 
QuestionProblem building projects from command line Pin
Henrik Pettersson7-Nov-05 5:18
Henrik Pettersson7-Nov-05 5:18 

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.