How I can add an image in to apiGroup?
is there a way ? Please help.
public static int AddListViewGroup(OutlookLikeGrid lst, string text, int index){
LVGROUP apiGroup;
int ptrRetVal;
try{
if(lst == null){ return -1; }
apiGroup = new LVGROUP();
apiGroup.mask = LVGF_GROUPID | LVGF_HEADER | LVGF_STATE;
apiGroup.pszHeader = text;
apiGroup.cchHeader = apiGroup.pszHeader.Length;
apiGroup.iGroupId = index;
apiGroup.stateMask = LVGS_NORMAL;
apiGroup.state = LVGS_NORMAL;
apiGroup.cbSize = Marshal.SizeOf(typeof(LVGROUP));
ptrRetVal = (int)SendMessage(lst.Handle, OutlookLikeGridAPI.LVM_INSERTGROUP, -1, ref apiGroup);
return ptrRetVal;
}
catch(Exception ex){
throw new System.Exception("An exception in OutlookLikeGridAPI.AddListViewGroup occured: " + ex.Message);
}
}