In a listview, how do I set a different data alignment from that of the column headers? I want to center the column header text but then left align the data below.
Printable View
In a listview, how do I set a different data alignment from that of the column headers? I want to center the column header text but then left align the data below.
I don't believe you can; at least in any way short of owner draw. Even if you set the alignment of the header control item as directly as possible (LVM_GETHEADER, HDITEM.fmt = HDF_CENTER, HDM_SETITEM), the list items still wind up centered too.