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

C / C++ / MFC

 
GeneralKeyboard Message Pin
Maer72712-Nov-01 19:50
Maer72712-Nov-01 19:50 
GeneralRe: Keyboard Message Pin
Michael P Butler12-Nov-01 21:37
Michael P Butler12-Nov-01 21:37 
QuestionHow can I add avi to thó resource Pin
Eugene Pustovoyt12-Nov-01 19:23
Eugene Pustovoyt12-Nov-01 19:23 
AnswerRe: How can I add avi to thó resource Pin
Derek Waters13-Nov-01 12:33
Derek Waters13-Nov-01 12:33 
GeneralSyntax Color Problem. Pin
| mProject |12-Nov-01 17:16
| mProject |12-Nov-01 17:16 
Generaldata checking Pin
12-Nov-01 16:05
suss12-Nov-01 16:05 
GeneralRe: data checking Pin
Christian Graus12-Nov-01 16:14
protectorChristian Graus12-Nov-01 16:14 
GeneralRe: data checking Pin
Rassman13-Nov-01 0:53
Rassman13-Nov-01 0:53 
I agree with Christian, catching these yourself can be much neater and you can then handle the input error in a way that doesn't inhibit the flow of the user.

If your an operater typing 10 million numbers in a day you don't want a windows messagebox every time you press a wrong key, but you don't want to be allowed to type on if you have entered 'obviously' invalid data.

It depends on whether you only respond to a whole entry (by responding to the enter key) or partial entries (each change in the data entry), as to which windows message you respond to.

On a key by key basis you may check OnChange(), I'm assuming an editbox here.

OnChange()
{
//receive the string as its default type (string)
//use which ever convertion function your data needs
//or simply scan the string to ensure only your required range
//is included.
//on error, beep or move the user to the error -- basically whatever
//your program/user situation requires.
}

I use the beep/move back to error often because I find it is what data entry people want. Put your error checking in a seperate thread and the faster users can work uninhibited until an error.



We do it for the joy of seeing the users struggle.
Generaldate conversion Pin
12-Nov-01 16:01
suss12-Nov-01 16:01 
GeneralRe: date conversion Pin
Christian Graus12-Nov-01 16:19
protectorChristian Graus12-Nov-01 16:19 
GeneralRe: date conversion Pin
Nish Nishant12-Nov-01 23:36
sitebuilderNish Nishant12-Nov-01 23:36 
GeneralRe: date conversion Pin
Christian Graus12-Nov-01 23:49
protectorChristian Graus12-Nov-01 23:49 
GeneralRe: date conversion Pin
markkuk12-Nov-01 20:10
markkuk12-Nov-01 20:10 
GeneralCBrush question Pin
RobJones12-Nov-01 12:18
RobJones12-Nov-01 12:18 
GeneralRe: CBrush question Pin
Christian Graus12-Nov-01 15:44
protectorChristian Graus12-Nov-01 15:44 
GeneralDeleteFile() function Pin
pjc12-Nov-01 10:17
pjc12-Nov-01 10:17 
GeneralRe: DeleteFile() function Pin
Tomasz Sowinski12-Nov-01 11:44
Tomasz Sowinski12-Nov-01 11:44 
Generalsubclassing and storage in a CList Pin
squizz12-Nov-01 10:14
squizz12-Nov-01 10:14 
GeneralRe: subclassing and storage in a CList Pin
Andrew Peace12-Nov-01 11:06
Andrew Peace12-Nov-01 11:06 
GeneralDownloading form results Pin
José Luis Sogorb12-Nov-01 6:44
José Luis Sogorb12-Nov-01 6:44 
GeneralRe: Downloading form results Pin
Carlos Antollini12-Nov-01 6:54
Carlos Antollini12-Nov-01 6:54 
GeneralRe: Downloading form results Pin
José Luis Sogorb12-Nov-01 7:43
José Luis Sogorb12-Nov-01 7:43 
GeneralRe: Downloading form results Pin
Carlos Antollini12-Nov-01 8:34
Carlos Antollini12-Nov-01 8:34 
GeneralRegular dll in vc++ for Delphi . URGENT !!! Pin
12-Nov-01 6:09
suss12-Nov-01 6:09 
GeneralRe: Regular dll in vc++ for Delphi . URGENT !!! Pin
Chris Losinger12-Nov-01 6:19
professionalChris Losinger12-Nov-01 6:19 

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.