ok,
heres the deal. i need to get a pointer to my Dialog Box(the parent) from a CTreeCtrl derived Class(the child). ive searched through teh globals and havent found anything taht works. Anyone know how to do it?
thanks
L5
Printable View
ok,
heres the deal. i need to get a pointer to my Dialog Box(the parent) from a CTreeCtrl derived Class(the child). ive searched through teh globals and havent found anything taht works. Anyone know how to do it?
thanks
L5
I'm assuming that your CTreeCtrl derived class is a member of dialog class.
In that case u can modify the constructor of ur CTree... derived class to accept a CDialog *.
This way u can store a pointer to parent in the CTree.. derived class.
While creating the object of CTree.. derived class u pass 'this' as a parameter to the constructtor.