Hi,
I have a 'owner draw fix' CListCtrl which does not return the values I expect when I call GetSubItemRect(). GetSubItemRect() always seems to return the values expected it the owning dialog's font size is 8pt. If I change the font to 16pt the cell heights are unaffected, resulting in any cell text running over the boundary of the cell (very messy!). Should I be doing something with the fonts in my overloaded DrawItem() function?
If I turn of the owner draw flag (and remove the DrawItem() functin) the cell sizes are adjusted correctly to the font.
Does anyone know what the 'fix' in 'owner draw fix' refers to?
Many Thanks Andy.
I have a 'owner draw fix' CListCtrl which does not return the values I expect when I call GetSubItemRect(). GetSubItemRect() always seems to return the values expected it the owning dialog's font size is 8pt. If I change the font to 16pt the cell heights are unaffected, resulting in any cell text running over the boundary of the cell (very messy!). Should I be doing something with the fonts in my overloaded DrawItem() function?
If I turn of the owner draw flag (and remove the DrawItem() functin) the cell sizes are adjusted correctly to the font.
Does anyone know what the 'fix' in 'owner draw fix' refers to?
Many Thanks Andy.