Dynamically add/remove controls
Is is possible to dynamically add/remove a control within a compound control? I'm developing a small application where the main control contains one control which acts as a menu. Depending on the choice in the menu, different controls should be displayed in the other part of the compound control. Is this possible to do?
RE: Dynamically add/remove controls
Sure it is
just have a pointer to your control as an member variable in your class and you can construct and delete as you wish. Just be carefull when implementing your CountComponentControls & ComponentControl functions.