You need to send the message only when the Origin is not you.
The easiest way to close a chat window is to send "/close" message; alternatively you can call PostMessageW to post WM_CLOSE. Anyway, why did you use PlusWnd?
This post was edited on 12-28-2007 at 12:49 PM by Mnjul.
Debug Please - by ::Quick:: on 12-28-2007 at 12:28 PM RE: Debug Please - by Mnjul on 12-28-2007 at 12:48 PM RE: Debug Please - by Matti on 12-28-2007 at 12:59 PM