I know there is a lot of discussion on global variables and that they are EVIL!
I have been using global boolean variables to keep track of which menu options are enabled or disabled (grayed).
Is there a better method, and if so what is it?
Printable View
I know there is a lot of discussion on global variables and that they are EVIL!
I have been using global boolean variables to keep track of which menu options are enabled or disabled (grayed).
Is there a better method, and if so what is it?
One solution is to declare the variables in one of the classes such as the document class.
Kuphryn
Couldn't you use the API IsWindowEnabled() ?
Code:BOOL IsWindowEnabled(
HWND hWnd // handle to window
);
Thanks for the info. I'll look into your suggestions.