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
[email protected]
Printable View
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
[email protected]
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.