Michael's got me on this thought process to get rid of some globals.
BUT it seems there is no way to pass variables to a call back function...
Would say, reading an INI file in be more appropriate to do when I do my WM_INITDIALOG ??
Say I've got 25 variables I need read in that are user options......
These have to be passed to an OPTIONS screen as well, thus yet ANOTHER callback requires these variables.
I should have asked this question, if I didn't already, about 9 years ago
So far I just use a global LONG integer as a flag, ie g_RunInSystemTray, or g_StartWithWindows etc etc.
Inquiring minds want to know...
BUT it seems there is no way to pass variables to a call back function...
Would say, reading an INI file in be more appropriate to do when I do my WM_INITDIALOG ??
Say I've got 25 variables I need read in that are user options......
These have to be passed to an OPTIONS screen as well, thus yet ANOTHER callback requires these variables.
I should have asked this question, if I didn't already, about 9 years ago

So far I just use a global LONG integer as a flag, ie g_RunInSystemTray, or g_StartWithWindows etc etc.
Inquiring minds want to know...

Comment