What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Trying to get into the advanced stuff

[?] Trying to get into the advanced stuff
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [?] Trying to get into the advanced stuff
To detect when someone clicks the column header, you don't have to write a dll to subclass the ListView at all. ListView controls send a WM_NOTIFY message to the parent window for various events, including when the column headers are clicked, which means you can detect it in JScript using PlusWnd.RegisterMessageNotification().

I have attached a little example script to detect column header clicks, enjoy :P

Note: if you have multiple ListViews, you can distinguish between them by reading the hwndFrom of the NMLISTVIEW structure.
if(NMLISTVIEW.ReadDWORD(0) == Wnd.GetControlHandle("<ControlId>"))...

.plsc File Attachment: _ListViewControl_ColumnClicked.plsc (1.8 KB)
This file has been downloaded 195 time(s).

This post was edited on 06-10-2007 at 01:35 PM by Eljay.
06-10-2007 01:28 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Trying to get into the advanced stuff - by Matti on 06-09-2007 at 03:02 PM
RE: [?] Trying to get into the advanced stuff - by Volv on 06-09-2007 at 03:40 PM
RE: [?] Trying to get into the advanced stuff - by Matti on 06-09-2007 at 03:49 PM
RE: [?] Trying to get into the advanced stuff - by Volv on 06-09-2007 at 04:06 PM
RE: [?] Trying to get into the advanced stuff - by vikke on 06-09-2007 at 04:17 PM
RE: [?] Trying to get into the advanced stuff - by markee on 06-10-2007 at 07:02 AM
RE: [?] Trying to get into the advanced stuff - by Matti on 06-10-2007 at 11:49 AM
RE: [?] Trying to get into the advanced stuff - by Eljay on 06-10-2007 at 01:28 PM
RE: [?] Trying to get into the advanced stuff - by Matti on 06-10-2007 at 03:36 PM
RE: [?] Trying to get into the advanced stuff - by Eljay on 06-10-2007 at 04:03 PM
RE: [?] Trying to get into the advanced stuff - by markee on 06-10-2007 at 04:11 PM
RE: [?] Trying to get into the advanced stuff - by CookieRevised on 06-10-2007 at 08:26 PM
RE: [?] Trying to get into the advanced stuff - by Matti on 06-11-2007 at 04:27 PM
RE: [?] Trying to get into the advanced stuff - by markee on 06-12-2007 at 04:04 AM
RE: [?] Trying to get into the advanced stuff - by Matti on 06-12-2007 at 06:12 PM
RE: [?] Trying to get into the advanced stuff - by markee on 06-13-2007 at 02:40 AM
RE: [?] Trying to get into the advanced stuff - by Patchou on 02-10-2008 at 10:04 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On