Click to See Complete Forum and Search --> : How to capture the Event or WM_messages when the HeadColumns of the ListView resized
michi
May 7th, 2001, 01:22 PM
Hi,
I want to capture the event when user resize the headercolumn of a listview, and then store the column length.
I cannot find a related Event of ListView, I am wondering if I should use windows Hook. If so, what the WM_messages I can use?
Thanks.
Michi
Clearcode
May 11th, 2001, 10:16 AM
There is a subclassing control called EventCtl.dll at http://www.merrioncomputing.com/Download/index.htm which is a good start. I can even supply source code (given some notice).
The message you are looking for is probably WM_NOTIFY although there are several ListView specific messages registered ... prefix LVM_ which might be appropriate.
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
michi
May 11th, 2001, 11:19 AM
Thanks for your kindly help.
I have downloaded EventCtl.dll, but I still cannot find with one I can use for the ListView ColumnHeader resizing event.
To use WM_NOTIFY, I need to know the message of the NMHDR structure (which contains information about a notification message). Unfortinatly, I was sticked here.
I tried to use ListView_MouseDown event, but it can not be trigger when I drag the ColumnHeader,except when I clicked other place in the ListView.
Thanks again.
Regards,
Michi
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.