Hi again all,
I need some help getting my report-mode ListView to look decent (i.e. resemble the filebrowser in explorer). So far I was able to tweak most things the way I needed them except for these two setbacks:
1) While using the LVS_EX_BORDERSELECT (where the highlighting is placed around the text/icon instead of over it) the selection border displays *larger* than the items themselves resulting in the selection border overlapping the items above and below it. To fix this, I was hoping I could adjust the height of each item (as in a listbox or combobox), but I can't seem to find a way to adjust item height in a report-mode ListView (i.e, something similar to LB_SETITEMHEIGHT, or CB_SETITEMHEIGHT... alas no LVM_SETITEMHEIGHT?)
I found some discussion on google talking about using an ownerdrawn style instead and catching WM_SETSIZE messages, however that's a bit too advanced for me at the moment... so might there be a message I could send instead or function I could call to achieve this?
2) Whenever I add an icon to one of the column headers, the background of the icon, which should be transparent, appears white instead. This seems to be something unique with the headers as adding the same icons to other controls (such as buttons or labels) displays them correctly. I'm worried it may have something to do with the icon's masking, bitdepth, resolution, etc, and in that area, I have no idea what the appropriate masking would be in order to show an icon with a transparent background in a header. Does anyone know what kind of icon/image type I should be using for this? also, is there a generic way to implement sortup/down icons on headers?
Here is a screenshot of the problems I am describing.
If anyone could help me out with these it'd be greatly appreciated, thanks!