Add icon to 'Unload skin' in context menu

This commit is contained in:
Birunthan Mohanathas 2013-04-03 12:38:50 +03:00
parent d862324887
commit a903629fc4

View File

@ -3187,6 +3187,12 @@ HMENU CRainmeter::CreateSkinMenu(CMeterWindow* meterWindow, int index, HMENU men
HMENU skinMenu = MenuTemplate::CreateMenu(s_Menu, _countof(s_Menu), GetString);
if (skinMenu)
{
// Set the 'Unload skin' icon.
MENUITEMINFO mii = {sizeof(mii)};
mii.fMask = MIIM_BITMAP;
mii.hbmpItem = HBMMENU_MBAR_CLOSE;
SetMenuItemInfo(skinMenu, IDM_CLOSESKIN, FALSE, &mii);
// Tick the position
HMENU settingsMenu = GetSubMenu(skinMenu, 4);
if (settingsMenu)