Ok ill do it in code roughly...
Code:
class newCtl{
public:
newCtl()
private:
newPrj_win *new_window
launch_ui();
};
********************
newCtl::newCtl(){
launch_ui();
}
*********************
newCtl::launch_ui(){
new_window = new (blah ... class constructor etc)
};
*******************
*******************
//Now the basic structor of the newPrj_win class
class newPrj_win: public wxFrame, newCtl{
//This code is good
}
The above is quickly typed as i dont have the actual code to hand. basically I need to create newPrj_win dynamically in memory because of the way wxWidget works.
Cheers
Alex