Hi Developers! > I will try to add similar code in my [buggy] UMC/UMX plugin :)
I forgot about Finalize: It will look like this: void TBP_EXPORT TBP_Finalize() { //restoring oryginal windowproc SetWindowLong(hMainWindow, GWL_WNDPROC, (LONG)lpPrevMainWndProc); //deleting added menu items HMENU hMenu = GetMenu(hMainWindow); //get own menu item: for(int i=0; i<GetMenuItemCount(hMenu); i++) { HMENU hm = GetSubMenu(hMenu, i); if(hm == hMyMenu) { DeleteMenu(hMenu, i, MF_BYPOSITION ); //DestroyMenu(hMyMenu); break; } } } -- Best regards, Jacek Szumigaj The Bat! 3.0.2.10/Windows XP 5.1 ________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html