What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Prevent closing chats?

Prevent closing chats?
Author: Message:
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: Prevent closing chats?
quote:
Originally posted by Jesus
Well the message to be cancelled is WM_DESTROY
You probably want to cancel WM_CLOSE and not WM_DESTROY ;)
Because WM_CLOSE is the message that is sent to a window to tell it to start closeing, and this lets the window clean up and do anything it needs todo when its closed (for example in a group conversation it shows the prompt dialog when you send WM_CLOSE).
However WM_DESTROY is what is sent when the window actually needs to be destroyed, usually after WM_CLOSE has been sent, and the window has had time to clean up.

So if you only canceled WM_DESTROY then the window would still do all the closeing it needs todo (like ending sessions) but the window would just never get destroyed. So you need to possible cancel both.
Hope this makes some sense :)
09-10-2006 11:26 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Prevent closing chats? - by Jesus on 08-16-2006 at 12:55 PM
RE: Prevent closing chats? - by RaceProUK on 08-16-2006 at 02:09 PM
RE: Prevent closing chats? - by Jesus on 08-16-2006 at 04:17 PM
RE: Prevent closing chats? - by RaceProUK on 08-17-2006 at 08:31 AM
RE: RE: Prevent closing chats? - by Jesus on 08-17-2006 at 08:39 AM
RE: Prevent closing chats? - by CookieRevised on 08-17-2006 at 08:34 AM
RE: Prevent closing chats? - by RaceProUK on 08-17-2006 at 08:46 AM
RE: Prevent closing chats? - by Delphi Thunderbolt on 08-17-2006 at 01:45 PM
RE: Prevent closing chats? - by Jesus on 08-17-2006 at 02:55 PM
RE: Prevent closing chats? - by Delphi Thunderbolt on 08-18-2006 at 05:10 AM
RE: Prevent closing chats? - by Jesus on 08-26-2006 at 12:46 PM
RE: Prevent closing chats? - by Jesus on 09-09-2006 at 03:22 PM
RE: Prevent closing chats? - by Delphi Thunderbolt on 09-10-2006 at 01:41 AM
RE: Prevent closing chats? - by Jesus on 09-10-2006 at 11:01 AM
RE: Prevent closing chats? - by Plik on 09-10-2006 at 11:26 AM
RE: Prevent closing chats? - by Jesus on 09-10-2006 at 11:59 AM
RE: Prevent closing chats? - by xxhannahxx on 09-10-2006 at 12:30 PM
RE: Prevent closing chats? - by CookieRevised on 09-10-2006 at 03:00 PM
RE: Prevent closing chats? - by Delphi Thunderbolt on 09-11-2006 at 10:38 AM
RE: Prevent closing chats? - by Jesus on 09-11-2006 at 05:33 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