mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Removed useless code.
This commit is contained in:
parent
bf861acbcc
commit
f0f7bd9121
@ -1538,11 +1538,6 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath)
|
|||||||
ResetStats();
|
ResetStats();
|
||||||
ReadStats();
|
ReadStats();
|
||||||
|
|
||||||
if (_waccess(m_IniFile.c_str(), 0) == -1)
|
|
||||||
{
|
|
||||||
m_TrayWindow->ShowBalloonHelp();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Change the work area if necessary
|
// Change the work area if necessary
|
||||||
if (m_DesktopWorkAreaChanged)
|
if (m_DesktopWorkAreaChanged)
|
||||||
{
|
{
|
||||||
|
@ -173,25 +173,6 @@ BOOL CTrayWindow::ModifyTrayIcon(double value)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL CTrayWindow::ShowBalloonHelp()
|
|
||||||
{
|
|
||||||
BOOL res = FALSE;
|
|
||||||
|
|
||||||
NOTIFYICONDATA tnid = {sizeof(NOTIFYICONDATA)};
|
|
||||||
tnid.hWnd = m_Window;
|
|
||||||
tnid.uID = IDI_TRAY;
|
|
||||||
tnid.uFlags = NIF_INFO;
|
|
||||||
tnid.uTimeout = 30000;
|
|
||||||
tnid.dwInfoFlags = 4; // NIIF_USER;
|
|
||||||
tnid.hIcon = LoadIcon(m_Instance, MAKEINTRESOURCE(IDI_TRAY));
|
|
||||||
wcscpy(tnid.szInfo, L"There aren't any configs active at the moment. Open the context menu from Rainmeter's tray icon and select a config you want to use.");
|
|
||||||
wcscpy(tnid.szInfoTitle, L"Rainmeter");
|
|
||||||
res = Shell_NotifyIcon(NIM_MODIFY, &tnid);
|
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
HICON CTrayWindow::CreateTrayIcon(double value)
|
HICON CTrayWindow::CreateTrayIcon(double value)
|
||||||
{
|
{
|
||||||
if (m_Measure != NULL)
|
if (m_Measure != NULL)
|
||||||
|
@ -44,7 +44,6 @@ public:
|
|||||||
|
|
||||||
void ReadConfig(CConfigParser& parser);
|
void ReadConfig(CConfigParser& parser);
|
||||||
HWND GetWindow() { return m_Window; }
|
HWND GetWindow() { return m_Window; }
|
||||||
BOOL ShowBalloonHelp();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
Loading…
Reference in New Issue
Block a user