What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Clearing LstView Controls

[?] Clearing LstView Controls
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [?] Clearing LstView Controls
Try this instead! ;)
code:
//ListView_DeleteAll - Deletes all items
//Parameters: hWnd = control handle
function ListView_DeleteAll(hWnd) {
   var LVM_FIRST = 0x1000;
   var LVM_DELETEALLITEMS = (LVM_FIRST + 9);

   return new Boolean(Interop.Call("user32", "SendMessageW", hWnd, LVM_DELETEALLITEMS, 0, 0));
}

//Example
ListView_DeleteAll(PlusWnd.GetControlHandle("ListView"));

This post was edited on 10-03-2007 at 06:19 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
10-03-2007 02:32 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Clearing LstView Controls - by Spunky on 10-03-2007 at 02:07 PM
RE: [?] Clearing LstView Controls - by Matti on 10-03-2007 at 02:32 PM
RE: [?] Clearing LstView Controls - by Volv on 10-03-2007 at 02:40 PM
RE: [?] Clearing LstView Controls - by Spunky on 10-03-2007 at 02:49 PM
RE: RE: [?] Clearing LstView Controls - by Matti on 10-03-2007 at 05:32 PM
RE: [?] Clearing LstView Controls - by Volv on 10-03-2007 at 02:58 PM
RE: [?] Clearing LstView Controls - by Spunky on 10-03-2007 at 03:00 PM
RE: [?] Clearing LstView Controls - by markee on 10-03-2007 at 03:03 PM
RE: [?] Clearing LstView Controls - by Spunky on 10-03-2007 at 03:04 PM
RE: RE: [?] Clearing LstView Controls - by Volv on 10-03-2007 at 03:07 PM
RE: [?] Clearing LstView Controls - by markee on 10-03-2007 at 03:14 PM
RE: [?] Clearing LstView Controls - by Spunky on 10-03-2007 at 05:45 PM
RE: [?] Clearing LstView Controls - by roflmao456 on 10-03-2007 at 07:47 PM
RE: [?] Clearing LstView Controls - by phalanxii on 10-04-2007 at 12:47 AM
RE: [?] Clearing LstView Controls - by Matti on 10-04-2007 at 04:56 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