PropertyGrid: General Thoughts
Posted: Tue Apr 28, 2009 9:43 pm
My old PropertyGrid was based on a custom window class instead of an existing control. Looking back I think it was a mistake since there are quite some problems that an existing control would have solved in the first place. This includes several scrolling issues. Now, I want to rewrite my PropertyGrid and this time it should be based either on a ListBox, ListView or TreeView control.
So now I need answers to the following questions:
1.) Is it possible to actually hide items in a ListBox or ListView? Currently you would have to delete the items in question, temporarily save them and then re-insert them into the control to make them visible again.
2.) Is it possible to set the height of a single item? As far as I know when you set the height via #LB_SETITEMHEIGHT, #TVM_SETITEMHEIGHT and #WM_MEASUREITEM (for List-View) then this will affect the height for all items in a control.
So now I need answers to the following questions:
1.) Is it possible to actually hide items in a ListBox or ListView? Currently you would have to delete the items in question, temporarily save them and then re-insert them into the control to make them visible again.
2.) Is it possible to set the height of a single item? As far as I know when you set the height via #LB_SETITEMHEIGHT, #TVM_SETITEMHEIGHT and #WM_MEASUREITEM (for List-View) then this will affect the height for all items in a control.