Manage TreeListView

I need to implement the TreeList control the same as in Process Explorer. I am new to the GUI and have not written such complex controls.

As I see in Process Explorer, there is a TreeListWindowClass that contains child elements: 2 headers, 3 scroll bars (one of them invisible?) And 1 static (the space between the visible scroll bars). As far as I understand, the main control draws all the objects within itself. Also, I did not find mfcxxx.dll in the attached DLLs.

Question 1: which framework is better to use? There are: MFC, WTL, simple WinAPI ... I looked at this implementation http://www.codeguru.com/cpp/controls/treeview/classes/article.php/c13167 and confused> 8000 lines of code in a CPP file with huge structures (one of them contains 80 members). This is a simple WinAPI (and C without ++). I definitely want to use OOP style. =)

Question 2: What should be the high-level design of this control? Can you explain without any details how this control should be designed?

My limitations: C ++, VS10, OS: Vista and higher.

Thanks in advance

+3
source share
4 answers

I did this recently and used the tree view of several columns from http://www.mimec.org/articles/mfc/mctree

Screenshot of Multi-Column Tree View

, . CColumnTreeView, CView, CDocument/CView MFC.

+3

Process Explorer "Tree " Process Hacker ( .)

+1

Qt , QTreeWidget, , .
enter image description here

0

DevExpress , #. ++/CLI ++. , . , .

As for the free treelist controls, I try to stay away from them due to bugs and lack of support.

0
source

All Articles