Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

align to center text in first column

Status
Not open for further replies.

sal21

Programmer
Apr 26, 2004
429
IT
I know to the default the text in the items of first column of listview is left, but i need to center text in all items!
Possible?
 
>the default the text in the items of first column of listview is left

it isn't just the default, it is a fairly nrigorously enforced (by the control) style. Even if you go to the basic and advanced ListView messages you cannot force the first column to be centred ...

So, one trick is to have an unneeded first column (set it's width to 0)

Alternatively you need to look a more ownerdraw trickery.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top