Results 1 to 2 of 2

Thread: Listview data alignment

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Listview data alignment

    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.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,667

    Re: Listview data alignment

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width