PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Rolf Brandt on December 21, 2009, 08:50:06 AM

Title: Adding controls to a control array at runtime
Post by: Rolf Brandt on December 21, 2009, 08:50:06 AM
Hi Paul,

I know this was not possible in FF2 - is it now? The number of controls is available first a the start of the program (read from a database file).

If not - would it be a good idea to create them in WM_Create with DDT? How Could one avoid conflicts with assigned ID's?
Title: Re: Adding controls to a control array at runtime
Post by: Paul Squires on December 21, 2009, 07:09:49 PM
You can create controls at runtime manually by using CreateWindowEx. The control ids that you assign should be less than 1000 because FF starts numbering the controls at 1000.
Title: Re: Adding controls to a control array at runtime
Post by: Rolf Brandt on December 22, 2009, 05:33:21 AM
Thanks, Paul.