Hello,
Can any one tell me or point me in the right direction on how to programatically loop through the different controls on a form to set various attributes in each one. I am using MFC in visual studio.net.
If you mean just the controls who have the WS_TABSTOP style (trhe ones that you can get by preassing tab), you can use the GetNextDlgTabItem CWnd member function.
Other method for all the child windows on a CWnd.
Get a pointer to the fisrt child window the call CWnd::GetNextWindow.
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.