have you tried subclassing the MDI window and catching WM_PARENTNOTIFY. You will recieve a WM_CREATE or WM_DESTROY along with the window handle of the child window. This only works for @windows as dialogs do not open inside the MDI (they are owned by the desktop) If you need to know what type of window is openeing (ie channel custom send get etc..) you can use GetClassName. I believe the current format is mIRC_WindowType. for example mIRC_Custom but im not too sure you can simply look in spy to get the names.

Note i meant this only works for windows not just @windows

Last edited by Narusegawa_Naru; 30/09/03 07:44 PM.

Have Fun smile