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

C / C++ / MFC

 
AnswerRe: float vs double - tricky performance issue Pin
TimothyPMoore30-Sep-09 11:56
TimothyPMoore30-Sep-09 11:56 
GeneralRe: float vs double - tricky performance issue [modified] Pin
Chris Losinger30-Sep-09 12:01
professionalChris Losinger30-Sep-09 12:01 
GeneralRe: float vs double - tricky performance issue Pin
TimothyPMoore30-Sep-09 13:02
TimothyPMoore30-Sep-09 13:02 
GeneralRe: float vs double - tricky performance issue Pin
Rick York30-Sep-09 13:29
mveRick York30-Sep-09 13:29 
GeneralRe: float vs double - tricky performance issue Pin
Chris Losinger30-Sep-09 13:38
professionalChris Losinger30-Sep-09 13:38 
QuestionEnumerated Type Not Comparing Correctly Pin
Jim Fell30-Sep-09 8:49
Jim Fell30-Sep-09 8:49 
AnswerRe: Enumerated Type Not Comparing Correctly Pin
includeh1030-Sep-09 8:56
includeh1030-Sep-09 8:56 
GeneralRe: Enumerated Type Not Comparing Correctly Pin
Jim Fell30-Sep-09 9:02
Jim Fell30-Sep-09 9:02 
QuestionRe: Enumerated Type Not Comparing Correctly Pin
CPallini30-Sep-09 9:23
mveCPallini30-Sep-09 9:23 
AnswerRe: Enumerated Type Not Comparing Correctly Pin
Jim Fell30-Sep-09 9:58
Jim Fell30-Sep-09 9:58 
GeneralRe: Enumerated Type Not Comparing Correctly Pin
CPallini30-Sep-09 10:57
mveCPallini30-Sep-09 10:57 
AnswerRe: Enumerated Type Not Comparing Correctly Pin
Jim Fell30-Sep-09 9:59
Jim Fell30-Sep-09 9:59 
QuestionIs exe file aligned in size? Pin
includeh1030-Sep-09 5:09
includeh1030-Sep-09 5:09 
AnswerRe: Is exe file aligned in size? Pin
Joe Woodbury30-Sep-09 6:01
professionalJoe Woodbury30-Sep-09 6:01 
GeneralRe: Is exe file aligned in size? Pin
includeh1030-Sep-09 8:46
includeh1030-Sep-09 8:46 
GeneralRe: Is exe file aligned in size? Pin
Joe Woodbury30-Sep-09 8:52
professionalJoe Woodbury30-Sep-09 8:52 
GeneralRe: Is exe file aligned in size? Pin
includeh1030-Sep-09 9:37
includeh1030-Sep-09 9:37 
AnswerRe: Is exe file aligned in size? Pin
krmed30-Sep-09 6:02
krmed30-Sep-09 6:02 
GeneralRe: Is exe file aligned in size? Pin
Richard MacCutchan30-Sep-09 6:17
mveRichard MacCutchan30-Sep-09 6:17 
AnswerRe: Is exe file aligned in size? Pin
David Crow30-Sep-09 9:51
David Crow30-Sep-09 9:51 
GeneralRe: Is exe file aligned in size? Pin
krmed1-Oct-09 0:25
krmed1-Oct-09 0:25 
GeneralRe: Is exe file aligned in size? Pin
David Crow1-Oct-09 2:16
David Crow1-Oct-09 2:16 
QuestionComboBox speed issue with XP style Pin
user94130-Sep-09 4:49
user94130-Sep-09 4:49 
QuestionUsing CEdit with ES_NUMBER giving "Please enter a positive integer." followed by exception. Pin
Neil Urquhart30-Sep-09 4:16
Neil Urquhart30-Sep-09 4:16 
Using VC6 & MFC

I have dialog with an edit box for the user to enter an integer number. I have set the number property in the resource sheet (ES_NUMBER) to handle entering numbers. Now everything is fine in that I can enter numbers and catch the new member value in my OnChangeEdit......() function.

However !

If you have say "3" in the edit box and you want to change it to say "4", a legitimate way for the user to do this is to press backspace to delete the "3" character and type "4" to set the new value.

But if you do this I get a message box saying "Please enter a positive integer." on using the backspace key switfly followed by an exception and program crash. Not very elegant !!

I have tried to intercept this with break points in OnChangeEdit or DoDataExchange of the dialog but it never gets there before the message box pops up.

Appart from priseing out the backspace key from the keyboard is there way to get around this ? It looks to my like a glaring whole in the default way MFC works. Other more learned people than me must have hit this plenty of times ?

Neil
AnswerRe: Using CEdit with ES_NUMBER giving "Please enter a positive integer." followed by exception. Pin
sashoalm30-Sep-09 4:29
sashoalm30-Sep-09 4:29 

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.