Questions tagged [treecontrol]

49 questions
0
votes
1 answer

Select nodes in a Tree Control (MFC)

I created a tree control in VC++, but I cant select the child nodes. Any suggestions? m_pTree->Create(WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT | …
Sudix
  • 640
  • 8
  • 27
0
votes
1 answer

How to load default icons for CTreeCtrl nodes

due to layout customization needs, I extended CTreeCtrl class. I absolutely need to use CDC::DrawText() function to dinamically (re)write the text of the single nodes, WITHOUT calling SetItemText() function more than once(mandatory requisite). Then,…
IT.
  • 311
  • 1
  • 5
  • 24
-2
votes
1 answer

Can anyone tell me how to add icons to tree-control in MFC

I have a simple tree control, so i want to add some icons to my tree control nodes. DDX_Control(pDX, IDC_TREE1, m_TreeView); m_TreeView.InsertItem(L"Skills"); HTREEITEM main = m_TreeView.InsertItem(L"Technical"); m_TreeView.InsertItem(L"C++",…
Arif
  • 3
  • 3
-2
votes
1 answer

This program thows exception. Want to create program to display directory structure with tree control in mfc

**FileEnumTreeControl.cpp file** // FileEnumTreeControl.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "FileEnumTreeControl.h" #include "FileEnumTreeControlDlg.h" #ifdef _DEBUG #define new…
1 2 3
4