MFC and c++ problems



Forgive me if I'm overlooking the obvious.  Basically, this is my
problem:

I have a derived Dialog:

class A : public CDialog{
}

I have a derived CTreeCtrl:

class B : public CTreeCtrl{
}

In A, there is an instance of B, as well as a bunch of other controls,
which should contain information relating to the text for a tree item
(HTREEITEM) in B.  The information is stored in an INI file.

Ok, I can get some of the windows messages to work in B, but
begindrag() does not work at all (I've checked the create() settings,
and it's not the TVS_DISABLEDRAGDROP flag).

Basically, my question is, how can I call A.method from B?  How can I
change A.m_sStringVariable from B?  I have no problems doing this from
A to B, as there is an instance of B in A....but vice versa?

Thanks.
Ben

.



Relevant Pages

  • Re: MFC and c++ problems
    ... >>class A: public CDialog{ ... >>I have a derived CTreeCtrl: ... >>which should contain information relating to the text for a tree item ... > MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: MFC and c++ problems
    ... >class A: public CDialog{ ... >I have a derived CTreeCtrl: ... >which should contain information relating to the text for a tree item ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)