G
Guest
Does anyone know how to add an image to the ColumnHeader control in the .Net Compact Framework?
The Microsoft Windows CE .NET 4.2 documentation has an article "Working with Advanced Header Control Features" which describes how you can do this non .Net code, so it should be possible in .Net too; has any one got this working, or do I need to write my own code?
I've been able to get the hwnd for my listview (by using Win32 API GetWindow), and from there the hwnd for the HeaderControl (using the LVM_GETHEADER message). Now I'm stuck because I need the handle to the ImageList control, so I can do something like:
SendMessage(hwndHeaderControl, HDM_SETIMAGELIST, 0U, (uint)hwndImageList);
where hwndImageList is supposed to be a handle to my System.Windows.Forms.ImageList which holds the images. Just how do I get this hwndImageList? Or am I barking at totally the wrong tree?
Thanks.
The Microsoft Windows CE .NET 4.2 documentation has an article "Working with Advanced Header Control Features" which describes how you can do this non .Net code, so it should be possible in .Net too; has any one got this working, or do I need to write my own code?
I've been able to get the hwnd for my listview (by using Win32 API GetWindow), and from there the hwnd for the HeaderControl (using the LVM_GETHEADER message). Now I'm stuck because I need the handle to the ImageList control, so I can do something like:
SendMessage(hwndHeaderControl, HDM_SETIMAGELIST, 0U, (uint)hwndImageList);
where hwndImageList is supposed to be a handle to my System.Windows.Forms.ImageList which holds the images. Just how do I get this hwndImageList? Or am I barking at totally the wrong tree?
Thanks.