I tried changing TVN_SELCHANED to TVN_SELCHANGING but that does not work with me. I think the problem is that MFC automatically updates the tree with a visible selection after TVN_SELCHANGING.
I don't know if it is possible but I have a CTreeCtrl object with checkboxes and that works fine. The thing is that I don't like the selection in my tree. I already have checkboxes so I do not have...
I must admit that I never used updateData(), but somehow all my tree items get added just fine. The only problem is the getCheck() operation. I tried adding updateData() but unfortunately that does...
Does anybody know a solution for the above problem. The frustrating part is that in some cases the checkboxes are actually checked but most of time not. And I do exactly the same (I made a function...
But unfortunately in a more complex situation I created, this resulted in some circular references that I could not solve. Therefor I worked around this...
Well, I think the answer is no. Basically, they only share a couple of attributes, so packaging these attributes should be enough. By the way, why package these attributes in a class and not in a...
Well, I think my classes have enough in common to justify a common base class. But I am doubting if I should doubt ;) I probably just need more experience in these matters to feel more confident in...
This is more a general OO question, but I was wondering when to define a base class and when not to. For instance, I have a couple of classes (not derived), all with a few common attributes but no...
That sounds really logical to me . But I do not really know a way to pass that pointer to the CMyTreeCtrl class. As far as I know, I do not (explicitly) call the constructor or any other function...
Well, thanks anyway for the reply. It teaches me alot about the inner working of maps. By the way, that first solution you suggested does not seem to work in my case, that was the first thing I tried...
Nevermind, I already discovered the origin of the compile errors. A map needs a standard constructor and I made a constructor with arguments (although all arguments had default values). Now I just...
Well, I don't have a preference for any datastructure as long as it does the job. So I started with the adjustments for map, but now It won't compile anymore. The implementation using vectors was...
So I guess it is not possible to keep using Vectors in this situation. Then a map indeed sounds like a better solution, although I don't like the idea of data duplication. Of course I could always...
I always used arrays but from what I see these vector are very useful. Therefor I started using them in my current project. I want to use these vectors in a situation where I have a fixed number of...