From f0f7bd91216c6d5f9edd417619946f080874c665 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Tue, 7 Dec 2010 18:12:13 +0000 Subject: [PATCH] Removed useless code. --- Library/Rainmeter.cpp | 5 ----- Library/TrayWindow.cpp | 19 ------------------- Library/TrayWindow.h | 1 - 3 files changed, 25 deletions(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 9e8d2c3a..38e808fd 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -1538,11 +1538,6 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath) ResetStats(); ReadStats(); - if (_waccess(m_IniFile.c_str(), 0) == -1) - { - m_TrayWindow->ShowBalloonHelp(); - } - // Change the work area if necessary if (m_DesktopWorkAreaChanged) { diff --git a/Library/TrayWindow.cpp b/Library/TrayWindow.cpp index 9e303e8a..83771527 100644 --- a/Library/TrayWindow.cpp +++ b/Library/TrayWindow.cpp @@ -173,25 +173,6 @@ BOOL CTrayWindow::ModifyTrayIcon(double value) 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) { if (m_Measure != NULL) diff --git a/Library/TrayWindow.h b/Library/TrayWindow.h index 5db8dcd6..64ee8f82 100644 --- a/Library/TrayWindow.h +++ b/Library/TrayWindow.h @@ -44,7 +44,6 @@ public: void ReadConfig(CConfigParser& parser); HWND GetWindow() { return m_Window; } - BOOL ShowBalloonHelp(); protected: static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);