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?
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?
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!
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 );
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Thanks for the info. I'll look into your suggestions.
Favorite Quote:
>For that reason someone invented C++.
BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!