diff options
Diffstat (limited to 'plugins/TabSRMM/src/controls.cpp')
-rw-r--r-- | plugins/TabSRMM/src/controls.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp index f269d6a11d..9bc16310f8 100644 --- a/plugins/TabSRMM/src/controls.cpp +++ b/plugins/TabSRMM/src/controls.cpp @@ -821,9 +821,9 @@ LONG_PTR CALLBACK StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR if (PluginConfig.m_visualMessageSizeIndicator && i == 0) {
if (dat && dat->bType == SESSIONTYPE_IM) {
- HBRUSH br = CreateSolidBrush(RGB(0, 255, 0));
- HBRUSH brOld = (HBRUSH)SelectObject(hdcMem, br);
- RECT rc = itemRect;
+ HBRUSH br = CreateSolidBrush(RGB(0, 255, 0));
+ HBRUSH brOld = (HBRUSH)SelectObject(hdcMem, br);
+ RECT rc = itemRect;
rc.top = rc.bottom - 3;
rc.left = 0;
@@ -859,6 +859,7 @@ LONG_PTR CALLBACK StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR FillRect(hdcMem, &rc, br);
}
}
+ SelectObject(hdcMem, brOld);
DeleteObject(br);
}
}
|