Type: Posts; User: Mza
Search took 0.03 seconds.
January 22nd, 2004, 07:53 AM
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.
January 21st, 2004, 03:47 AM
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...
January 21st, 2004, 02:36 AM
He thanks KeyserSoze , your solution works great. Finally my tree does exactly what I want.
January 19th, 2004, 02:55 AM
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...
January 15th, 2004, 07:48 AM
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...
January 15th, 2004, 04:22 AM
Thnx, that worked fine for me :thumb:
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...
January 15th, 2004, 03:04 AM
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...
January 14th, 2004, 10:02 AM
January 14th, 2004, 09:38 AM
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...
January 14th, 2004, 07:09 AM
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...
January 14th, 2004, 03:34 AM
It's a pretty old topic but it covers my problem. I can't seem to successfully implement the following solution.
I have the following classes/definitions:
January 13th, 2004, 10:50 AM
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...
January 13th, 2004, 09:56 AM
How do I access public attributes from other objects?
I have the following situation: The function OnNMClick (from the derived CTreeCtrl class CMyTreeCtrl) is called when I click in the dialog...
January 13th, 2004, 09:27 AM
Looks good to me. I'm getting it ASAP.
Yes, it is much better. Not only faster but also more logical en better to understand. :thumb:
January 13th, 2004, 08:45 AM
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...
January 13th, 2004, 08:06 AM
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...
January 13th, 2004, 07:40 AM
January 13th, 2004, 07:15 AM
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...
January 13th, 2004, 05:49 AM
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...
January 13th, 2004, 05:33 AM
But won't this searching for level = n cost me O(n) time? Or is this inevitable with the way I use vectors?
January 13th, 2004, 05:20 AM
// Ensure that capacity is big enough to avoid memory reallocation.
//and now n times
Great, this works fine :)
January 13th, 2004, 04:55 AM
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...
January 13th, 2004, 03:57 AM
Thnx for the help :)
I tried several implementations including an adjustment to what I posted earlier, namely:
typedef std::set<int> levels;
typedef std::map<int,levels> subgroups;
January 12th, 2004, 07:34 AM
I'm pretty new to C++ so I don't know if I'm on the right track with the following subject.
I'm making a little application to modify and view some logging information. Every log...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!