Re: update for SetLibEntryPoints
Jacek Szumigaj <[email protected]> Tue, 30 Aug 2005 22:26:59 +0200
| Newsgroups | gmane.mail.the-bat.plugins |
|---|---|
| Message-ID | <[email protected]> |
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