technically youll want to un subclass in the WM_NCDESTROY. typically if youve reserved any memory. Dont forget to PostMessage the destroy and return 0 from your wndproc. (so your out of your proc when the dll unloads and mIRC can see the destroy)