Page 1 of 1

Windows - Listview changing footer

Posted: Fri Jan 31, 2014 10:36 am
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