Windows - Listview changing footer

Just starting out? Need help? Post your questions and find answers here.
Fenix
Enthusiast
Enthusiast
Posts: 102
Joined: Wed May 07, 2003 1:45 am
Location: Germany

Windows - Listview changing footer

Post by Fenix »

Hi,

I'm stuck with changing existing footers of a group. The initial setting works fine, but changing doesn't.

Code: Select all

  FillMemory(@_lvGroup, SizeOf(LVGROUP1))                ; clear the structure
  iNumberOfEntries = ListSize(LVGrouplist()) - 1
  _lvGroup\mask = #LVGF_FOOTER
  For iCounter = 0 To iNumberOfEntries
    sItem = Str(LVGrouplist()\GroupItems)
    _lvGroup\pszFooter  = @sItem
    _lvGroup\cchFooter  = Len(sItem) * 2 + 2
    SendMessage_(hWnd, #LVM_SETGROUPINFO, iCounter, @_lvGroup)
  Next
The structure of _lvGroup is LVGROUP1 (which is an aligned [#PB_Structure_AlignC] version of the LVGROUP structure).

The MSDN gives me a LVM_GETFOOTERINFO but no LV_SETFOOTERINFO. Instead LVM_SETGROUPINFO shall be used. But it's not working *grrr*

Am I missing a token in my groupmask??

Greetz,
Fenix