Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC bad? Win 32 good? C#, .NET and other questions Pin
benjymous11-Feb-07 23:30
benjymous11-Feb-07 23:30 
AnswerRe: MFC bad? Win 32 good? C#, .NET and other questions Pin
Cedric Moonen11-Feb-07 23:32
Cedric Moonen11-Feb-07 23:32 
AnswerRe: MFC bad? Win 32 good? C#, .NET and other questions Pin
Arman S.12-Feb-07 0:07
Arman S.12-Feb-07 0:07 
AnswerRe: MFC bad? Win 32 good? C#, .NET and other questions Pin
Eytukan12-Feb-07 0:58
Eytukan12-Feb-07 0:58 
Questionintercepting the message loop Pin
ldsdbomber11-Feb-07 23:01
ldsdbomber11-Feb-07 23:01 
AnswerRe: intercepting the message loop Pin
benjymous11-Feb-07 23:24
benjymous11-Feb-07 23:24 
AnswerRe: intercepting the message loop Pin
Eytukan12-Feb-07 0:00
Eytukan12-Feb-07 0:00 
QuestionStyle/method question regarding dialog updates/calcs Pin
ldsdbomber11-Feb-07 22:53
ldsdbomber11-Feb-07 22:53 
Just wondered if I could get some input/feedback on what is considered to be good style/method for the following

Say I have a simple dialog application created through the app wizard in VC++ (MFC)

If I have three edit boxes which contain variables that (at the moment) users manually input data into, and in a fourth control (edit box, static text or whatever) the value is calculated based simply on the values in the 3 edit boxes.

Is it best just to have a specific button to "calculate" and fill in the 4th control with the answer,
or is there a way to make it automatically update whenever one of the edit boxes changes value - in that case, does this require the user to enter the value and press "enter", or can it be done (and is it more messy?) in real time so that even as you type in a value into one of the edit boxes, the calculated item is updated visually at the same time.

I'm guessing the latter is going to be more of a mess and probably not as useful as it seems, but I welcome any thoughts from anyone who's developed this kind of behaviour before. I assume there might be some message handler for the edit boxes like WM_ITEMCHANGED or something, will look in MSDN but please feel free to contribute

many thanks
AnswerRe: Style/method question regarding dialog updates/calcs Pin
Naveen11-Feb-07 23:19
Naveen11-Feb-07 23:19 
AnswerRe: Style/method question regarding dialog updates/calcs Pin
jhwurmbach11-Feb-07 23:20
jhwurmbach11-Feb-07 23:20 
QuestionShellExecute Pin
si_6911-Feb-07 22:37
si_6911-Feb-07 22:37 
AnswerRe: ShellExecute Pin
Eytukan11-Feb-07 22:52
Eytukan11-Feb-07 22:52 
AnswerRe: ShellExecute Pin
si_6912-Feb-07 1:11
si_6912-Feb-07 1:11 
AnswerRe: ShellExecute Pin
David Crow12-Feb-07 2:36
David Crow12-Feb-07 2:36 
QuestionSelecting polygons Pin
m.dietz11-Feb-07 22:20
m.dietz11-Feb-07 22:20 
AnswerRe: Selecting polygons Pin
Cedric Moonen11-Feb-07 23:11
Cedric Moonen11-Feb-07 23:11 
AnswerRe: Selecting polygons Pin
beko11-Feb-07 23:43
beko11-Feb-07 23:43 
GeneralRe: Selecting polygons Pin
m.dietz12-Feb-07 1:02
m.dietz12-Feb-07 1:02 
AnswerRe: Selecting polygons Pin
Mark Salsbery12-Feb-07 6:43
Mark Salsbery12-Feb-07 6:43 
QuestionNow, how to delete? Pin
Astricks11-Feb-07 22:06
Astricks11-Feb-07 22:06 
AnswerRe: Now, how to delete? [modified] Pin
jhwurmbach11-Feb-07 22:27
jhwurmbach11-Feb-07 22:27 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
GeneralRe: Now, how to delete? Pin
jhwurmbach11-Feb-07 23:04
jhwurmbach11-Feb-07 23:04 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:50
Astricks11-Feb-07 22:50 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 6:56
Hamid_RT12-Feb-07 6: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.