CTreeCtrl controls - Programmer
This is a discussion on CTreeCtrl controls - Programmer ; I am first time using this control i just want to know how to get
events on tree using CTreeCtrl....
-
CTreeCtrl controls
I am first time using this control i just want to know how to get
events on tree using CTreeCtrl.
-
Re: CTreeCtrl controls
sujith wrote:
> I am first time using this control i just want to know how to get
> events on tree using CTreeCtrl.
It's the same mechanism used by any other type of control - you add
event handlers for the events you are interested in. For example, in my
IDE (VS .NET 2003) I can place a CTreeCtrl onto my dialog from the
toolbar. If I double click on the CTreeCtrl I get a selection change
handler added in for me. To add other events I select the CTreeCtrl and
click on the small icon with the yellow lightning type symbol to get a
list of possible events that I can add. With VS 6 the later method is
slightly different. I can't quite recall the exact method but it should
be possible from the Class Wizard.
A good book on MFC would probably help you out.
Regards,
Hugh