Hi micheal i used your code it's very usefull!!! but a problem I can't active cut,copy and paste in my visual studio 2010 please help me My time will over in 3 days later and me lose my job Please help me
Hi Michael! I find your article very useful especially on my search using tree view control. Could you provide me some help on tree view control displaying or selecting data from a database? Thank you.
When calling DisplayTree() with a path as the first
argument, if there are any forward slashes (/) instead of
backslashes (\) the tree will be dead. It took me a while
to figure out that this was my problem. So I just added
the line below to replace forwards with backslashes. The
problem, if you're curious is that the tree showed only
the subdirectories of the path I was passing and I couldn't
In the DisplayTree() function, insert the indicated line:
m_strRoot = strRoot;
One thing that was bugging me was when I expanded the network drive at the bottom of the tree, the subtree expanded out below the bottom of the window but the view didn't change. I added the two lines in the code below to scroll the expanding root item to the top of the window.