Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: get ip of current internet connection with mfc Pin
Joaquín M López Muñoz16-Nov-01 7:06
Joaquín M López Muñoz16-Nov-01 7:06 
GeneralSetting ip to local network card Pin
Halid Niyaz2-Aug-03 0:18
Halid Niyaz2-Aug-03 0:18 
GeneralSetting ip to local network card Pin
Halid Niyaz2-Aug-03 0:18
Halid Niyaz2-Aug-03 0:18 
GeneralRe: How do i set the IP address to the network card Pin
Halid Niyaz27-Aug-03 2:04
Halid Niyaz27-Aug-03 2:04 
GeneralRe: get ip of current internet connection with mfc Pin
Nish Nishant16-Nov-01 14:00
sitebuilderNish Nishant16-Nov-01 14:00 
QuestionEN_CHANGE? Pin
Rickard Andersson2016-Nov-01 6:18
Rickard Andersson2016-Nov-01 6:18 
AnswerRe: EN_CHANGE? Pin
Joaquín M López Muñoz16-Nov-01 7:18
Joaquín M López Muñoz16-Nov-01 7:18 
AnswerRe: EN_CHANGE? Pin
Rassman19-Nov-01 5:05
Rassman19-Nov-01 5:05 
OnChange for the control allows you to check per key.

It means though that you have to grab the text of the box, check it, then indicate the error to the user.

For a box that with a maximum of two characters its fast enough, though it can be equally argued that for a box with two characters checking OnExit or when the return key is pressed is just the same.

If your text could be long the OnChange check may be most desirable since the user may need to know before going too far ahead.

In this case the first possible method is wastefull, that is, collecting all text and checking it all every time

H
He
Hel
Hell
Hello
Hello W
etc

For a 256 character line, there is a lot of waste.

So, it is better to remember where you have already checked and where the cursor currently is. If you look at CEdit you will find possitional data available to you which you can use for this within the ::OnChange()


We do it for the joy of seeing the users struggle.
GeneralHelp!!!: Network Domain Names Pin
Blade Runner16-Nov-01 5:57
Blade Runner16-Nov-01 5:57 
GeneralRe: Help!!!: Network Domain Names Pin
Carlos Antollini16-Nov-01 6:03
Carlos Antollini16-Nov-01 6:03 
GeneralQuestion about ComboBox Pin
Ernest Laurentin16-Nov-01 5:15
Ernest Laurentin16-Nov-01 5:15 
GeneralRe: Question about ComboBox Pin
Joaquín M López Muñoz16-Nov-01 7:29
Joaquín M López Muñoz16-Nov-01 7:29 
GeneralRe: Question about ComboBox Pin
Mike Nordell18-Nov-01 12:28
Mike Nordell18-Nov-01 12:28 
Generalautomate excel Pin
Gérald Mercet16-Nov-01 4:25
Gérald Mercet16-Nov-01 4:25 
GeneralRe: automate excel Pin
Carlos Antollini16-Nov-01 4:57
Carlos Antollini16-Nov-01 4:57 
QuestionDetermine Memory Requirements? Pin
Derek Price16-Nov-01 4:02
Derek Price16-Nov-01 4:02 
AnswerRe: Determine Memory Requirements? Pin
Daniel Turini16-Nov-01 5:07
Daniel Turini16-Nov-01 5:07 
Generala question about check box Pin
Gérald Mercet16-Nov-01 2:02
Gérald Mercet16-Nov-01 2:02 
GeneralRe: a question about check box Pin
markkuk16-Nov-01 2:26
markkuk16-Nov-01 2:26 
GeneralRe: a question about check box Pin
Daniel Turini16-Nov-01 2:27
Daniel Turini16-Nov-01 2:27 
GeneralRe: a question about check box Pin
Gérald Mercet16-Nov-01 2:48
Gérald Mercet16-Nov-01 2:48 
GeneralRe: a question about check box Pin
Daniel Turini16-Nov-01 4:38
Daniel Turini16-Nov-01 4:38 
GeneralRe: a question about check box Pin
Gérald Mercet16-Nov-01 4:40
Gérald Mercet16-Nov-01 4:40 
GeneralRe: a question about check box Pin
Mark Terrano16-Nov-01 11:23
Mark Terrano16-Nov-01 11:23 
GeneralPrint preview! Pin
mazy16-Nov-01 1:56
mazy16-Nov-01 1:56 

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.