Rainmeter.dll now shares icon with Rainmeter.exe to reduce binary size.

This commit is contained in:
Birunthan Mohanathas
2011-11-11 09:38:00 +00:00
parent 73d71b1284
commit 9f629fac62
14 changed files with 9 additions and 116 deletions

View File

@ -264,7 +264,7 @@ HICON CTrayWindow::CreateTrayIcon(double value)
}
// Return the default icon if there is no valid measure
return LoadIcon(m_Instance, MAKEINTRESOURCE(IDI_TRAY));
return (HICON)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_RAINMETER), IMAGE_ICON, 16, 16, LR_SHARED);
}
void CTrayWindow::ReadConfig(CConfigParser& parser)