Owner draw CTreeCtrl
-
Hi all, I'd like to disable the scrollbars of a CTreeCtrl object, and I thought I must use a class derived from CTreeCtrl. But I can't do. Can you help me? Thanks in advance Ngo Khai Hoa
-
Hi all, I'd like to disable the scrollbars of a CTreeCtrl object, and I thought I must use a class derived from CTreeCtrl. But I can't do. Can you help me? Thanks in advance Ngo Khai Hoa
-
Hi all, I'd like to disable the scrollbars of a CTreeCtrl object, and I thought I must use a class derived from CTreeCtrl. But I can't do. Can you help me? Thanks in advance Ngo Khai Hoa
You need not derive any class from CTreeCtrl. You just have to set the style TVS_NOSCROLL using ModifyStyle function of the CWnd Class ( CTreeview is derived from CWnd hence inherits that function). Later you will not have the both vertical and horizontal scroll bar for the tree control. Example CTreeCtrl *x = (CTreeCtrl *)GetDlgItem(IDC_TREE1); x->ModifyStyle(0,TVS_NOSCROLL); HTH. Sundaravalli Shriram Tektronix Engineering Development India Ltd, Bangalore - 560001, India.