Bolding a group header in a XP ListView

  • Thread starter Thread starter Glen Low
  • Start date Start date
G

Glen Low

With some difficulty, since there aren't any clear docs on this, I've
managed to enable "group view" on a .NET Framework 1.1 ListView
running on Windows XP by sending it LVM_REMOVEALLGROUPS,
LVM_ENABLEGROUPVIEW, LVM_INSERTGROUP and then LVM_SETITEMW on each
existing item. But I want to get the group header to appear bold, just
as it is in the XP file explorer, how do I do that?

Cheers,
Glen Low, Pixelglow Software
www.pixelglow.com
 
Looks pretty impressive, but doesn't handle groupings in list view. (I
just did a text search on LVM_ENABLEGROUPVIEW which is necessary for
any implementation and it came up with nothing on the downloaded
source.)

No answer? I finally resolved it by handing the NM_CUSTOMDRAW
notification and changing the font of the group header at the right
stage. Apparently .NET ListView already registers for this
notification. I'm not entirely comfortable with this, though, since it
might interact with themeing and I suspect somehow the file explorer
must be doing it in a simpler fashion.

Cheers,
Glen Low, Pixelglow Software
www.pixelglow.com
 
As far as I remember, group headers are bold by default. No need to set
a special style/flag or to handle a special message. So something in
your code must be avoiding this behavior.

Timo
 
As far as I remember, group headers are bold by default. No need to set
a special style/flag or to handle a special message. So something in
your code must be avoiding this behavior.

Interesting, maybe I have the answer in my previous message... it
could be the .NET ListView handling of the message is stopping the
group header from being bold, I'll go and check it on Monday.

Cheers,
Glen Low, Pixelglow Software
www.pixelglow.com
 
Back
Top