What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Thx] DestroyWindow on chatwindow = crash?

[Thx] DestroyWindow on chatwindow = crash?
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: DestroyWindow on chatwindow = crash?
Don't use DestroyWindow anyways, it doesn't give a chance for the window to clean up. Instead, you have quite a few options:

[list=1][*]Send "/close" to the chat window (not recommended because it shows up in the recent messages list and won't work if commands are disabled)
[*]Send a WM_COMMAND message with the menu identifier of the Close menu item
[*]Send a WM_CLOSE message
[*]Call CloseWindow on the chat window - this doesn't close it, nevermind[/list]

The WM_CLOSE method is probably the best to use :)

This post was edited on 03-24-2007 at 05:55 PM by deAd.
03-24-2007 12:12 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Thx] DestroyWindow on chatwindow = crash? - by Flash on 03-23-2007 at 11:39 PM
RE: DestroyWindow on chatwindow = crash? - by deAd on 03-24-2007 at 12:12 AM
RE: DestroyWindow on chatwindow = crash? - by Flash on 03-24-2007 at 05:29 PM
RE: DestroyWindow on chatwindow = crash? - by deAd on 03-24-2007 at 05:54 PM
RE: DestroyWindow on chatwindow = crash? - by Flash on 03-24-2007 at 06:21 PM
RE: DestroyWindow on chatwindow = crash? - by CookieRevised on 03-24-2007 at 11:49 PM
RE: [Thx] DestroyWindow on chatwindow = crash? - by Flash on 03-25-2007 at 12:41 AM
RE: [Thx] DestroyWindow on chatwindow = crash? - by CookieRevised on 03-25-2007 at 12:47 AM
RE: [Thx] DestroyWindow on chatwindow = crash? - by Flash on 03-25-2007 at 12:49 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