When you want to change the height of CListCtrl, you need to use an owner-draw version of CListCtrl and change the font of the control. But when you change the font of the CListCtrl, the control or its parent window does not get a chance to respecify the height of the rows and the effect will not be taken. The reason is that No WM_MEASUREITEM message is sent to the controls parent window.
The following article from CodeProject provided a good solution.
And there is a similar article on CodeGuru.
Tags: CListCtrl, Cpp, Win32/MFCPermalink: Code Library - How to change the row height of CListCtrl
Subcribe the update with Google Reader.
2 Responses
The Simplest way to change the row height of CListCtrl | CodeLibrary
January 14th, 2008 at 9:41 am
1[...] the post “How to change the row height of CListCtrl“, it gives 2 solution example how to change row height or CListCtrl. Hower, it is not the [...]
vj
December 22nd, 2010 at 2:49 pm
2its working fine without chkeckbox in ListCtrl.
but i want to use it wit checkbox listctrl.
please tell me how can change row height when using checkbox option in listctrl?
RSS feed for comments on this post · TrackBack URI
Leave a reply
Category
Recent Posts
Hot Posts
Creative Commons
Code Library