Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Adding controls at run-time
It is most likely possible to dynamically add controls (such as text/combo boxes or buttons) to a dialog window in C++ (using MFC), but I wouldn't know how. Can anyone tell me how to do this? The idea is to be able to have my proggie read some script or config file which specifies what controls should be present on each screen, etc. So, I would need to be able to create arbitrary controls at run-time as specified by the script. Any help would be appreciated.
0 · ·