September 25th, 2003, 04:34 AM
(De-)Activating Dialog Elements in Visual C++ 6.0
Hi folks !
I have a little problem --> I want to set some items in a Visual C++ dialog active or inactive according to a switch in the same dialog.
I've found the CWnd::SetProperty method, but I didn't manage to get a list of the possible DISPIDs to be set.
Does anybody know where I can get such a list, or how the function call would look like to activate or deactivate a certain element of the dialog (maybe a check button for example) ?
September 25th, 2003, 04:52 AM
If you just want to turn on or off some controls on a dialog then try
EnableWindow() //disables or enables control
ShowWindow()//shows or hides from view
The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.
September 25th, 2003, 05:35 AM
Thanks for the tip, but these functions seem to affect the whole window ... :)
I just have to enable/disable certain elements in the window, the rest should remain unaffected ...
September 25th, 2003, 05:40 AM
Re: (De-)Activating Dialog Elements in Visual C++ 6.0
September 25th, 2003, 05:48 AM
Code works ...
Thanks very much for your help ... :)
September 26th, 2003, 02:53 AM