The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: starzboy on December 24, 2008, 10:49:23 AM

Title: Setfont in listview
Post by: starzboy on December 24, 2008, 10:49:23 AM
Hello people,
I require your help once again.
I have a listview and it has many columns and rows in it, and they have data filled in it.
Now i want to change the font of a specific row and in a specific column, how can i do that.
With WM_SETFONT, i change font of the whole listview, but i want to chnage font of only the selection.
Please help
Title: Re: Setfont in listview
Post by: Damos on December 24, 2008, 02:56:12 PM
Think you're going to need to OWNER_DRAW to do that.
Title: Re: Setfont in listview
Post by: donkey on December 24, 2008, 06:39:59 PM
Owner draw is a bit of overkill for simply setting the font for individual cells, easier to just use the custom draw notifications (http://msdn.microsoft.com/en-us/library/bb761817(VS.85).aspx), I have an example of a list view custom draw application on my website.