I have a program that displays a splitter window (very similar to Windows Explorer) and in the left pane, I have a tree view of a hard disk structure. What I would like to do is place a value next to each entry in this tree (what will be the space of all files under that directory) in response to a menu choice. I can get it to display it initally, with the following logic:
*User Selects Auto Mode
*Finds the values for each entry in order from top to bottom
*As it goes, it displays the value by using CTreeCtrl::GetItemRect() to figure out the co-ordinates, and then uses TextOut() to display the text.
My PROBLEM is that whenever something happens, like clicking on another directory or resizing the window, I loose all the data. As I figure out the data, I put it into a large array for the sake of keeping it, and I thought I could use the virtual CView::OnDraw() function to re-display it. Well, this functions never gets called. What should I use? I don't know too much about screen updates as you can see, and I am finding out that I know even less than I thought.