mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
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.
This commit is contained in:
parent
a903629fc4
commit
add778cfea
@ -2953,6 +2953,12 @@ void CRainmeter::ShowContextMenu(POINT pos, CMeterWindow* meterWindow)
|
|||||||
HMENU menu = MenuTemplate::CreateMenu(s_Menu, _countof(s_Menu), GetString);
|
HMENU menu = MenuTemplate::CreateMenu(s_Menu, _countof(s_Menu), GetString);
|
||||||
if (menu)
|
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);
|
SetMenuDefaultItem(menu, IDM_MANAGE, MF_BYCOMMAND);
|
||||||
|
|
||||||
if (_waccess(m_LogFile.c_str(), 0) == -1)
|
if (_waccess(m_LogFile.c_str(), 0) == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user