I have created a listview in Win32 with group view enabled, I can add Items to a group, but I Have multiple groups and I want an item to pass from group A to group B. I have found the macro ListView_MoveItemToGroup, I call it like so
int i =0;
i = m_taskList.GetSelectedIndex();
bool ret = ListView_MoveItemToGroup(m_taskList.m_hWnd,i,LVI_GROUPID_EXEC);
but ret is false; What I am doing wrong, the LVI_GROUP_EXEC is added to the litview.