From a903629fc47a0b86231b8314fa0f255ef6f2b560 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 3 Apr 2013 12:38:50 +0300 Subject: [PATCH] Add icon to 'Unload skin' in context menu --- Library/Rainmeter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 6158b3ef..268292fe 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -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)