troubleshooting Question

Create controls via a for loop.

Avatar of andyw27
andyw27 asked on
2 Comments1 Solution233 ViewsLast Modified:
I'm loking for suggestions as to how I can create static text controls by using a loop.

I'm having some success in what I tried up to now, however one problem I need to correct is that the name of the control is currently:

CStatic *text1 = new CStatic;

I need to change this so that it using the variable from the loop.  In this case the variable for the loop is an int called i  Otherwise when I run it it displays one control then just over writes the previous one and so on..

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros