Teen Programmers Unite  


Return to forum top

Dynamically create controls...VC++

Posted by elliott [send private reply] at September 05, 2002, 09:16:27 AM

I am trying to figure out how to create controls dynamically. I have seen that a dialog class has a 'CreateControl' member but understanding the actual parameters it takes is a little confusing.
As an example, say you have a Dialog box with 1 Edit box and 1 Button...you enter the number of Edit boxes you want to appear in the Edit box that is currently shown...then click the button and that many Edit boxes are displayed.

I think I use an array of CEdit objects...

The number of objects is determined only once while the program is rinning...

Any suggestions would be appreciated...even where I might want to look for the answer..

Thanks in Advance


You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.