flat assembler
Message board for the users of flat assembler.

Index > Windows > Problem with the listview

Author
Thread Post new topic Reply to topic
dancho



Joined: 06 Mar 2011
Posts: 74
dancho
So I have listview control with LVS_REPORT and LVS_NOSORTHEADER styles enabled , and I would like to prevent user from changing column header width,
so when user try to click and drag no action would occur...

One solutin I did try was to subclass WM_LBUTTONDOWN message and that worked , but this message does not register left mouse click in column header area Rolling Eyes
and I did try various LVN_ notification messages but without success...

so any help is appreciate ...
thx
Post 21 Jul 2011, 18:17
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17278
Location: In your JS exploiting you and your system
revolution
IIRC list view uses Header Controls for the column header(s). You can get the handle of the header control and capture the WM_NOTIFY message for HDN_BEGINTRACK notifications.
Post 21 Jul 2011, 18:45
View user's profile Send private message Visit poster's website Reply with quote
dancho



Joined: 06 Mar 2011
Posts: 74
dancho
@revolution
thank you very much,
HDN_TRACK message did it...

btw
I have to admit I never heared or used header controls before and as far as I can say listview pages in psdk do not mention them as one a lvs_report column header can be controled by,nvm learn something new every day,
thx again...
Post 21 Jul 2011, 20:21
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
Preventing the user?! - not many users will use the program.
Smile
Post 22 Jul 2011, 01:27
View user's profile Send private message Send e-mail Reply with quote
dancho



Joined: 06 Mar 2011
Posts: 74
dancho
one by one m8 and then who knows ,
maybe three ...

Very Happy
Post 22 Jul 2011, 07:48
View user's profile Send private message 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.