CListCtrl: Change position first/last item position in Icon mode
-
Hi all, Now I have a list controls; the list is set in Icon mode and I use it to display thumnail image (look like explorer in winxp to show images in thumbnail mode). When I put scroll (Vertical) position at the min position (zero value); items rectange (GetItemRect(0,&rect, LVIS_BOUNDS)) at the first line always is zero value! How can I change this value? (mean I can make a distance between item and the ceil of list control rect); Similarily with items at the last line when I put scroll position at the maximum value: bottom value of these items always dash the floor of list controls rect! Can I change this distance? In otherwise, if list control is a box; I see items always are fixed in the box; How can I enlarger this box??? Please tell me some ideas! Thanks! :doh:
-
Hi all, Now I have a list controls; the list is set in Icon mode and I use it to display thumnail image (look like explorer in winxp to show images in thumbnail mode). When I put scroll (Vertical) position at the min position (zero value); items rectange (GetItemRect(0,&rect, LVIS_BOUNDS)) at the first line always is zero value! How can I change this value? (mean I can make a distance between item and the ceil of list control rect); Similarily with items at the last line when I put scroll position at the maximum value: bottom value of these items always dash the floor of list controls rect! Can I change this distance? In otherwise, if list control is a box; I see items always are fixed in the box; How can I enlarger this box??? Please tell me some ideas! Thanks! :doh:
I dont think you can change the layout algorithm of the list control. -Atul, Sky Software http://www.ssware.com Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls