Adding controls to a control array at runtime

Started by Rolf Brandt, December 21, 2009, 08:50:06 AM

Previous topic - Next topic

Rolf Brandt

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?
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

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.
Paul Squires
PlanetSquires Software

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)