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

Published 30 July 04 05:21 PM | subhagpo 

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

# music said on August 5, 2004 4:49 AM:
http://www.ixmx.net
# jfo's coding said on March 3, 2005 1:25 PM:
# jfo's coding said on March 3, 2005 1:39 PM:
Anonymous comments are disabled

Search

This Blog

Syndication

Page view tracker