Click to See Complete Forum and Search --> : Global calls


laiason5
June 1st, 1999, 11:01 PM
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

Yogen M
June 2nd, 1999, 01:20 AM
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.