Removed useless code.

This commit is contained in:
Birunthan Mohanathas 2010-12-07 18:12:13 +00:00
parent bf861acbcc
commit f0f7bd9121
3 changed files with 0 additions and 25 deletions

View File

@ -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)
{

View File

@ -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)

View File

@ -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);