Click to See Complete Forum and Search --> : Creating ctrls on the fly - generating unique control id


Martin vd Berg
April 19th, 1999, 07:47 AM
In my app I have to generate CEdit controls on the fly. these controls need a controle ID. Is there a way to generate id's run-time?

Martin van den Berg

Martin van den Berg
High Tech Automation
The Netherlands
Martin.van.den.Berg@hta.nl

Anthony Mai
August 12th, 1999, 02:15 PM
In your dynamically created CEdit Ctrl,
after you create it, call the member function:
SetDlgCtrlID(yourID);
And it will work.
This works for any child window.