Scrollbar always visible on treeview
Mar 22, 2011 at 1:04am UTC
I am trying to make the scrollbar always visible on my treeview. I am using win32. My code is as follows:
1 2 3
hTree = CreateWindowEx(0,WC_TREEVIEW,_T("" ),WS_VISIBLE|WS_CHILD|WS_BORDER|WS_HSCROLL | WS_VSCROLL |
TVS_HASBUTTONS|TVS_HASLINES|TVS_LINESATROOT|TVS_HASLINES| SBS_HORZ
,0,28,216,535,hWnd,NULL,hInst,NULL);
I thought that the ws v and h scrolls would do it, but I was wrong. What do I need to make them always visible?
Last edited on Mar 22, 2011 at 1:05am UTC
Mar 23, 2011 at 2:55am UTC
Looking at the Microsoft docs there doesn't appear to be an attribute you can set in CreateWindowEx, that will make the scrollbar always visible. You might have to try a different method.
Topic archived. No new replies allowed.