diff options
author | George Hazan <george.hazan@gmail.com> | 2016-06-22 16:42:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-06-22 16:42:19 +0000 |
commit | c91d9d8f10c1754303c6ac8bb0b9717524f92126 (patch) | |
tree | ae815534dc6777a228ff87fd73181ee2f3438024 /src | |
parent | 5ee4c727a1a585172eb8973337fb28c8e88098cf (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17018 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clisttray.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/clisttray.cpp b/src/mir_app/src/clisttray.cpp index fcc9e9bb3a..de2dae1621 100644 --- a/src/mir_app/src/clisttray.cpp +++ b/src/mir_app/src/clisttray.cpp @@ -593,7 +593,7 @@ int fnTrayIconPauseAutoHide(WPARAM, LPARAM) // processes tray icon's messages
static BYTE s_LastHoverIconID = 0;
-static BOOL g_trayTooltipActive = FALSE;
+static bool g_trayTooltipActive = false;
static POINT tray_hover_pos = { 0 };
static void CALLBACK TrayHideToolTipTimerProc(HWND hwnd, UINT, UINT_PTR, DWORD)
@@ -603,7 +603,7 @@ static void CALLBACK TrayHideToolTipTimerProc(HWND hwnd, UINT, UINT_PTR, DWORD) GetCursorPos(&pt);
if (abs(pt.x - tray_hover_pos.x) > TOOLTIP_TOLERANCE || abs(pt.y - tray_hover_pos.y) > TOOLTIP_TOLERANCE) {
CallService("mToolTip/HideTip", 0, 0);
- g_trayTooltipActive = FALSE;
+ g_trayTooltipActive = false;
KillTimer(hwnd, TIMERID_TRAYHOVER_2);
}
}
@@ -633,7 +633,7 @@ static void CALLBACK TrayToolTipTimerProc(HWND hwnd, UINT, UINT_PTR id, DWORD) GetCursorPos(&tray_hover_pos);
SetTimer(cli.hwndContactList, TIMERID_TRAYHOVER_2, 600, TrayHideToolTipTimerProc);
- g_trayTooltipActive = TRUE;
+ g_trayTooltipActive = true;
}
}
@@ -671,7 +671,7 @@ INT_PTR fnTrayIconProcessMessage(WPARAM wParam, LPARAM lParam) case TIM_CALLBACK:
if (msg->lParam == WM_RBUTTONDOWN || msg->lParam == WM_LBUTTONDOWN || msg->lParam == WM_RBUTTONDOWN && g_trayTooltipActive) {
CallService("mToolTip/HideTip", 0, 0);
- g_trayTooltipActive = FALSE;
+ g_trayTooltipActive = false;
}
if (msg->lParam == WM_MBUTTONUP)
@@ -731,7 +731,7 @@ INT_PTR fnTrayIconProcessMessage(WPARAM wParam, LPARAM lParam) GetCursorPos(&pt);
if (abs(pt.x - tray_hover_pos.x) > TOOLTIP_TOLERANCE || abs(pt.y - tray_hover_pos.y) > TOOLTIP_TOLERANCE) {
CallService("mToolTip/HideTip", 0, 0);
- g_trayTooltipActive = FALSE;
+ g_trayTooltipActive = false;
ReleaseCapture();
}
}
|