RE: [Question]Remembering a ChatWnd
Do NOT store the chat window handle, nor the object in a variable when you are going to use it later on.
Chat windows, like any window, can be closed. And closing a window means that your handle will become invalid and the object destroyed.
The proper way to do this is to store the contact's email address instead. When the time has come to send a message, you open up a chat window with that contact. If the 'old' chat window was never closed then it will be used again. If the chat window was closed, a new window will be created.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|