Freigeben über


TreeView adding a horizontal scrollbar when adding Nodes as the TreeView is created...

I have seen a lot of querries why does the TreeView shows a horizontal scroll even though it doesnt need one when the Nodes are added in WM_CREATE.

First, it seems that the COMCTL32 feels that it doesnt have enough space when we try adding nodes while the treeview is getting created. Hence it sets the WS_HSCROLL flag on the window and hence we get the horizontal scroll.

We have fixed this bug in whidbey timeframe, but till then the user can add nodes in the Form.Load( ) event to let the treeview get created so that the horizontal scroll is not added.

Comments