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

List box clearing?
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: List box clearing?
It's much better to use the Win32 control messages for this, as if you make a mistake in your while-loop, you'll end up in an endless loop of doom and thus crashing your Messenger.

For list boxes:
code:
PlusWnd.SendControlMessage("ListBox", /* LB_RESETCONTENT */ 0x184, 0, 0);
For list views:
code:
PlusWnd.SendControlMessage("ListView", /* LVM_DELETEALLITEMS */ 0x1009, 0, 0);
The worst thing you can get then is a "bad calling convention" or something in your Interop.GetLastError(). :P

Blah, you already solved it yourself. Anyway, this post is for future generations. :P

This post was edited on 07-14-2008 at 05:02 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!
07-14-2008 05:01 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
List box clearing? - by SmokingCookie on 07-13-2008 at 08:55 PM
RE: List box clearing? - by foaly on 07-13-2008 at 09:00 PM
RE: RE: List box clearing? - by SmokingCookie on 07-14-2008 at 04:54 PM
RE: List box clearing? - by SmokingCookie on 07-13-2008 at 09:05 PM
RE: List box clearing? - by TheSteve on 07-14-2008 at 01:01 AM
RE: List box clearing? - by Matti on 07-14-2008 at 05:01 PM
RE: List box clearing? - by SmokingCookie on 07-14-2008 at 05:05 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