Advertisement

06.08.2008 at 01:58AM PDT, ID: 23467009
[x]
Attachment Details

win32 listview - change row height

Asked by henrybaxter in Windows Programming

Tags: C/C++

I can set the font I want for the items in a listview with a simple WM_SETFONT message. The row height adjusts as required to fit the text.

What I want is for the row to have an extra few pixels of 'padding' around the text.

The only way I could think of was to set a large font with WM_SETFONT, and then use NM_CUSTOMDRAW to adjust the actual font used for display. So far this is not proving successful, but I may be implementing it incorrectly.

Win32 in any language is ok, although VB I find hard to read. Please no MFC solutions.Start Free Trial
 
 
[+][-]06.08.2008 at 06:26AM PDT, ID: 21738312

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2008 at 10:44AM PDT, ID: 21739003

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.08.2008 at 04:22PM PDT, ID: 21739998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2008 at 05:05PM PDT, ID: 21740088

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows Programming
Tags: C/C++
Sign Up Now!
Solution Provided By: henrybaxter
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628