Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TAPI Pin
John R. Shaw7-Dec-04 18:00
John R. Shaw7-Dec-04 18:00 
GeneralRe: TAPI Pin
ThatsAlok7-Dec-04 22:15
ThatsAlok7-Dec-04 22:15 
GeneralLoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve7-Dec-04 16:50
SteQve7-Dec-04 16:50 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
Steve S7-Dec-04 23:35
Steve S7-Dec-04 23:35 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve8-Dec-04 0:04
SteQve8-Dec-04 0:04 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve8-Dec-04 0:32
SteQve8-Dec-04 0:32 
GeneralCommon handler for all dialog controls Pin
Raghunandan S7-Dec-04 16:39
Raghunandan S7-Dec-04 16:39 
GeneralRe: Common handler for all dialog controls Pin
John R. Shaw7-Dec-04 17:23
John R. Shaw7-Dec-04 17:23 
That is not a complex dialog!

If you want to centralise (create a handler) the control of any change messages, then you write one function that can handle any change and have have all the the change messages rerouted to that handler. What that means is that you have your on-change functions for each control call the same function to handle the message.

On a more practical note; each on-change function should do it's own thing and then call a funcion that, that says "wow, something has changed so we have to update the current status" (display, whatever...) and act accordingly.

Of course you could write a hook, to handle the messages, but that is a more than a bit of overkill for simple message handling.

You could also handle the messages in PreTranslateMessage(...), which is almost the same as writing your code in C (one message handler for the whole window).

Those are the choices I see, but essentualy what you appear to need is just a function that needs to be called it any changed occured. (See "On a more practical note")

Good Luck!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
Generalmobile games Pin
bigdeeoo77-Dec-04 16:17
bigdeeoo77-Dec-04 16:17 
GeneralRe: mobile games Pin
ThatsAlok7-Dec-04 17:11
ThatsAlok7-Dec-04 17:11 
GeneralRe: mobile games Pin
parths7-Dec-04 18:41
parths7-Dec-04 18:41 
Generalwin32 console app and threading issues Pin
tung salem7-Dec-04 16:00
tung salem7-Dec-04 16:00 
GeneralRe: win32 console app and threading issues Pin
John R. Shaw7-Dec-04 18:49
John R. Shaw7-Dec-04 18:49 
GeneralUsing FindFirstFile Pin
Moochie57-Dec-04 15:31
Moochie57-Dec-04 15:31 
GeneralRe: Using FindFirstFile Pin
*Dreamz7-Dec-04 18:43
*Dreamz7-Dec-04 18:43 
GeneralRe: Using FindFirstFile Pin
fogmen7-Dec-04 19:20
fogmen7-Dec-04 19:20 
Generalquestion about event handles Pin
pwinant7-Dec-04 15:02
pwinant7-Dec-04 15:02 
QuestionWhat language should I use? Pin
ajax19717-Dec-04 14:41
ajax19717-Dec-04 14:41 
AnswerRe: What language should I use? Pin
ThatsAlok7-Dec-04 17:16
ThatsAlok7-Dec-04 17:16 
AnswerRe: What language should I use? Pin
John R. Shaw7-Dec-04 20:01
John R. Shaw7-Dec-04 20:01 
AnswerRe: What language should I use? Pin
Henry miller8-Dec-04 4:39
Henry miller8-Dec-04 4:39 
GeneralVery high processor usage when trying to make program flicker free Pin
Jinegelen7-Dec-04 14:04
Jinegelen7-Dec-04 14:04 
GeneralI forgot something Pin
Jinegelen7-Dec-04 14:20
Jinegelen7-Dec-04 14:20 
GeneralRe: Very high processor usage when trying to make program flicker free Pin
Ryan Binns7-Dec-04 17:58
Ryan Binns7-Dec-04 17:58 
GeneralRe: Very high processor usage when trying to make program flicker free Pin
Jinegelen8-Dec-04 1:03
Jinegelen8-Dec-04 1:03 

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.