What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » List-view groups

List-view groups
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: List-view groups
@Matti: seems like I'm using an outdated version of your class? I copied it from Countdown live 2.1 and did some edits to it; I'll attach a ZIP file for ya :P

@matty: I've had no luck yet.. Here's my code (besides the class):

JScript code:
            MsgPlus.AddTimer("TmrLoadStuff",100);
            objPlusWnd.RegisterMessageNotification(WM_NOTIFY);
            MsgPlus.DisplayToast("",objPlusWnd.SendControlMessage("vLstContacts",LVM_ENABLEGROUPVIEW,true,0));
            var LVGROUP = Interop.Allocate(96);
            var Header = "First group!";
            var pszHeader = Interop.Allocate((Header.length + 1) * 2);
            with(LVGROUP) {
                writeDWORD(0,Size);
                writeDWORD(4,LVGF_HEADER | LVGF_GROUPID | 0x200 /* LVIF_COLUMNS */);
                writeDWORD(8,pszHeader.DataPtr);
                writeDWORD(12,pszHeader.Size);
                writeDWORD(24,101);
            }
            MsgPlus.DisplayToast("",objPlusWnd.SendControlMessage("vLstContacts",LVM_INSERTGROUP,-1,LVGROUP.DataPtr));
            var vLstContacts = new ListView(objPlusWnd,"vLstContacts");
            vLstContacts.InsertItem("Test item!",undefined,0,101);

Both toasts display a 1, indicating at least some success. But the result is an empty list view.

.zip File Attachment: ListView.zip (8.43 KB)
This file has been downloaded 104 time(s).

This post was edited on 10-16-2010 at 05:19 PM by SmokingCookie.
10-16-2010 05:18 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
List-view groups - by SmokingCookie on 10-16-2010 at 12:24 PM
RE: List-view groups - by matty on 10-16-2010 at 01:31 PM
RE: List-view groups - by Matti on 10-16-2010 at 03:14 PM
RE: List-view groups - by SmokingCookie on 10-16-2010 at 05:18 PM
RE: List-view groups - by SmokingCookie on 10-19-2010 at 10:24 AM


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