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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable column resizing in a ListView control

Status
Not open for further replies.

MuadDubby

Programmer
Sep 23, 1999
236
CA
Any idea how I can disable column resizing in a ListView control? As far as I can tell, the user can always resize it and there are no properties that let me disable this behaviour.

I've also looked for specific properties for this thing (and found, for example, WS_HSCROLL for the horizontal scroll bar) but have not been succesful there either. If there is a property for the column resizing, I can remove it with SetWindowLongA.

Thx in davance!
 
Try HideColumnHeaders = True, this is the only way I know of disabling the user from changing the column widths!

 
thx abrewis, but I had already tried that. It's true that this stops the user from resizing the columns, but now I've lost my column titles. I can no longer click on them in order to perform sorting...

any other ideas anyone?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top