flat assembler
Message board for the users of flat assembler.

Index > Windows > Noresize?

Author
Thread Post new topic Reply to topic
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
Sorry for lame question.
How to forbid resizing of a column in ListView without disabling it?

_________________
dream of mind creates a monster
Post 20 Sep 2005, 14:35
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
there is a style you set for listview, LVS_NOSORTHEADER
Post 20 Sep 2005, 19:51
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
No, I mean how to disable ability to change width of one column, without disabeling header (i.e. sorting should occur).
Actually I want to hide one column and user shouldnt have possibility to view it.
Code:
        mov [lvc.cx], 0
        invoke SendMessage, [hlist], LVM_SETCOLUMN, 2, lvc
    

I did above, and don`t know how to disable dragging of third-column-header`s boundaries.
Maybe exist some other method of hiding a column.
Post 21 Sep 2005, 06:33
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
Check WM_NOTIFY for LVN_ITEMCHANGED from the listview you want. LPARAM would be pointer to NM_LISTVIEW structure in which you check if the changed item is the column you want not to resize. If needed, resize it yourself to zero again.
Post 21 Sep 2005, 14:17
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.