Nigel Gomm
Programmer
I'm trying to get groups working in a listview.
This is always returning 0 when it should be returning 1 (and groups are not showing). Sending LVM_ISGROUPVIEWENABLED returns 0 as well.
This is v6.0 (SP6) of the common controls (as confirmed by .aboutbox).
Has anyone got this working?
test code adds an item then adds a group and then assigns the item to that group. But LVM_ENABLEGROUPVIEW always returns 0 (not even -1 to indicate failure) whether issued before the items are added or after. I can see that my LVM_INSERTGROUP is also returning 0 which could be interpreted as an index.... except that a subsequent LVM_GETGROUPCOUNT also returns 0.
My application manifest is the default (and checked within visual studio) enabling common controls 6. Also reinstalled mscommctl just to be sure (but as i said .aboutbox confirms it is v6 (SP6)..
tia
n
Code:
#define LVM_FIRST 0x1000
#DEFINE LVM_ENABLEGROUPVIEW LVM_FIRST + 157
#define LVM_ISGROUPVIEWENABLED LVM_FIRST + 175
DECLARE LONG SendMessage IN win32api AS sendMyMessage;
LONG HWND, INTEGER Msg, LONG wParam, INTEGER LPARAM
sendMyMessage(THIS.HWND, LVM_ENABLEGROUPVIEW,1,0)
This is v6.0 (SP6) of the common controls (as confirmed by .aboutbox).
Has anyone got this working?
test code adds an item then adds a group and then assigns the item to that group. But LVM_ENABLEGROUPVIEW always returns 0 (not even -1 to indicate failure) whether issued before the items are added or after. I can see that my LVM_INSERTGROUP is also returning 0 which could be interpreted as an index.... except that a subsequent LVM_GETGROUPCOUNT also returns 0.
My application manifest is the default (and checked within visual studio) enabling common controls 6. Also reinstalled mscommctl just to be sure (but as i said .aboutbox confirms it is v6 (SP6)..
tia
n