Introduction - If you have any usage issues, please Google them yourself
EnableGroupboxControls is a function I have used in several projects, where I wanted to enable/disable all the controls within a groupbox. There are several other solutions to this problem here on CodeProject- I have included a list here. None of these, however, had everything I was looking for: Able to be used in MFC or non-MFC project- since I spend a lot of time maintaining older Windows applications, I wanted a very lightweight solution.
Able to be used without instantiating class- this was important, because I necessarily have to minimize the impact on existing code.
Able to be used without recoding or redefining existing control variables- again, for same reasons as previous point.
Able to accommodate nested groupboxes- many of the dialogs in apps I maintain are non-trivial, because the apps themselves are highly technical. Nesting groupboxes is one way of coping with complex user interfaces.
Packet : 5956482enablegroupboxcontrols_demo.zip filelist
src/
src/About.cpp
src/About.h
src/app.manifest
src/EnableGroupboxControls.cpp
src/EnableGroupboxControls.h
src/EnableGroupboxControlsTest.cpp
src/EnableGroupboxControlsTest.h
src/EnableGroupboxControlsTest.rc
src/EnableGroupboxControlsTestDlg.cpp
src/EnableGroupboxControlsTestDlg.h
src/hans.ico
src/resource.h
src/StdAfx.cpp
src/StdAfx.h
src/XHyperLink.cpp
src/XHyperLink.h
src/XTrace.h
vs2005/
vs2005/EnableGroupboxControlsTest.sln
vs2005/EnableGroupboxControlsTest.vcproj
vs6/
vs6/EnableGroupboxControlsTest.dsp
vs6/EnableGroupboxControlsTest.dsw
vs6/Release/