Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add icon to 'Exit' in tray context menu.

Also adds the icon to the 'Exit' option in the Rainmeter sub menu in a skin's context menu.
  • Loading branch information...
commit add778cfeadaa24f2e5e1eb33422a3d247123496 1 parent a903629
@brianferguson brianferguson authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Library/Rainmeter.cpp
View
6 Library/Rainmeter.cpp
@@ -2953,6 +2953,12 @@ void CRainmeter::ShowContextMenu(POINT pos, CMeterWindow* meterWindow)
HMENU menu = MenuTemplate::CreateMenu(s_Menu, _countof(s_Menu), GetString);
if (menu)
{
+ // Set the 'Exit' Rainmeter icon
+ MENUITEMINFO mii = {sizeof(mii)};
+ mii.fMask = MIIM_BITMAP;
+ mii.hbmpItem = HBMMENU_MBAR_CLOSE;
+ SetMenuItemInfo(menu, IDM_QUIT, FALSE, &mii);
+
SetMenuDefaultItem(menu, IDM_MANAGE, MF_BYCOMMAND);
if (_waccess(m_LogFile.c_str(), 0) == -1)
Please sign in to comment.
Something went wrong with that request. Please try again.