Proverbial good example of CTreeCtrl
-
Any pointer to some good example on how to use the CTreeCtrl ?
-
Any pointer to some good example on how to use the CTreeCtrl ?
-
bad answer... I've already done that and could not find just a full example of the basic CTreeCtrl, otherwise I wouldn't ask it here, would I ?
-
bad answer... I've already done that and could not find just a full example of the basic CTreeCtrl, otherwise I wouldn't ask it here, would I ?
The answer is actually correct. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
bad answer... I've already done that and could not find just a full example of the basic CTreeCtrl, otherwise I wouldn't ask it here, would I ?
With smart-aleck replies like this, you'll be lucky to receive any further help in the future.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
With smart-aleck replies like this, you'll be lucky to receive any further help in the future.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
point taken... but I did already my bit in searching the articles first... neededless to say, giving an answer in search form is a bit pointless as it was my first try to already search the articles... hence what I'm looking for is somewhat different: a pointer to a short/full application that does use the CTreeCtrl that is not listed in the search results... otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!
-
point taken... but I did already my bit in searching the articles first... neededless to say, giving an answer in search form is a bit pointless as it was my first try to already search the articles... hence what I'm looking for is somewhat different: a pointer to a short/full application that does use the CTreeCtrl that is not listed in the search results... otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!
federico.strati wrote:
otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!
How can we tell, in advance, how stupid are you? :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
federico.strati wrote:
otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!
How can we tell, in advance, how stupid are you? :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D
-
point taken... but I did already my bit in searching the articles first... neededless to say, giving an answer in search form is a bit pointless as it was my first try to already search the articles... hence what I'm looking for is somewhat different: a pointer to a short/full application that does use the CTreeCtrl that is not listed in the search results... otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!
federico.strati wrote:
but I did already my bit in searching the articles first...
How were we to know?
federico.strati wrote:
neededless to say, giving an answer in search form is a bit pointless
Unless you consider that most folks that visit the C++ forums have NOT done an initial search. They would rather spend more time creating a CP profile and typing in an incoherent question than they would by just Googling. Lazy does not begin to describe some of the ones here. Given that your profile indicates you are indeed an educated person, you probably should have prefaced your post with what you had already tried. That would help to set you apart from the others.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D
federico.strati wrote:
Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning...
That's what I would do. Populating it with files from your computer would be a great exercise.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D
federico.strati wrote:
you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ...
As David, pointed out, I assume what would do the average poster of this forum (unless I know him very well).
federico.strati wrote:
Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning...
By chance you've just found yourself the best route. Si figuri... :-\
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D
federico.strati wrote:
Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D
You don't need to write you little app to explore all available options as Microsoft had already done it: the MSDN documentation about MFC classes is very good (in my opinion...) and the MFC samples too. Have a look at CMNCTRL1 Sample: Demonstrates Common Control MFC Classes, Part 1[^]. I cite from the MSDN:
Microsoft wrote:
The CMNCTRL1 sample illustrates how to use the following common control MFC classes: CTreeCtrl, CToolBarCtrl, CAnimateCtrl, CDateTimeCtrl, and CMonthCalCtrl. It shows how the controls are created and how to change the controls using many of the different available styles. Some controls cover topics that often yield questions from the user; for example, the drag and drop implementation for CTreeCtrl.
PS: Prego... :-\