diff options
Diffstat (limited to 'plugins/TabSRMM/src/trayicon.cpp')
-rw-r--r-- | plugins/TabSRMM/src/trayicon.cpp | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/plugins/TabSRMM/src/trayicon.cpp b/plugins/TabSRMM/src/trayicon.cpp index 31eb776712..9ac0f29aa5 100644 --- a/plugins/TabSRMM/src/trayicon.cpp +++ b/plugins/TabSRMM/src/trayicon.cpp @@ -35,7 +35,7 @@ HANDLE g_hEvent = 0; static TCHAR g_eventName[100];
-static void TrayAnimThread(LPVOID vParam)
+static void TrayAnimThread(LPVOID)
{
int iAnimMode = (PluginConfig.m_AnimTrayIcons[0] && PluginConfig.m_AnimTrayIcons[1] && PluginConfig.m_AnimTrayIcons[2] &&
PluginConfig.m_AnimTrayIcons[3]);
@@ -154,39 +154,6 @@ void TSAPI CreateSystrayIcon(int create) }
}
-static BOOL CALLBACK FindTrayWnd(HWND hwnd, LPARAM lParam)
-{
- TCHAR szClassName[256];
- GetClassName(hwnd, szClassName, 255);
-
- if (_tcscmp(szClassName, _T("TrayNotifyWnd")) == 0) {
- RECT *pRect = (RECT *) lParam;
- GetWindowRect(hwnd, pRect);
- return TRUE;
- }
- if (_tcscmp(szClassName, _T("TrayClockWClass")) == 0) {
- RECT *pRect = (RECT *) lParam;
- RECT rectClock;
- GetWindowRect(hwnd, &rectClock);
- if (rectClock.bottom < pRect->bottom - 5) // 10 = random fudge factor.
- pRect->top = rectClock.bottom;
- else
- pRect->right = rectClock.left;
- return FALSE;
- }
- return TRUE;
-}
-
-static void GetTrayWindowRect(LPRECT lprect)
-{
- HWND hShellTrayWnd = FindWindow(_T("Shell_TrayWnd"), NULL);
- if (hShellTrayWnd) {
- GetWindowRect(hShellTrayWnd, lprect);
- EnumChildWindows(hShellTrayWnd, FindTrayWnd, (LPARAM)lprect);
- return;
- }
-}
-
/*
* flash the tray icon
* mode = 0 - continue to flash
|