clistctrl variable row height
-
hi all, i have a CListCtrl on a dialog box. i want to have the rows of the CListCtrl with variable height which is determined dynamically during program execution. i have used MeasureItem which is called only once to set the row height. also i have used DrawItem to draw the elements in the CListCtrl rows. also the CListCtrl used has three columns. how can i get columns in the CListBox:confused:
-
hi all, i have a CListCtrl on a dialog box. i want to have the rows of the CListCtrl with variable height which is determined dynamically during program execution. i have used MeasureItem which is called only once to set the row height. also i have used DrawItem to draw the elements in the CListCtrl rows. also the CListCtrl used has three columns. how can i get columns in the CListBox:confused:
maxsteel wrote: i want to have the rows of the CListCtrl with variable height which is determined dynamically during program execution. You've found a limitation of list view controls. You might want to try a
CListBox
instead, which allows items to be of variable height (set theLBS_OWNERDRAWVARIABLE
style).Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"