Are you sure that menuedit sets a new menu bar? Perhaps it edits the runtime menu resource handle and then refreshes it to the app...this would prevent the HANDLE from changing and is a good hack to prevent any WM_DESTROY in the mIRC's WndProc...