CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Global calls

  1. #1
    Join Date
    May 1999
    Posts
    37

    Global calls

    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


  2. #2
    Join Date
    May 1999
    Location
    OR, USA
    Posts
    65

    Re: Global calls

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured