@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
@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.