diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-11 08:59:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-11 08:59:52 +0000 |
commit | db3992b55d0616896da4f616dfd09fac6642b292 (patch) | |
tree | 8a6624e32dfa68b67e168e333c4f7df4701929ec /plugins/TopToolBar | |
parent | 48e3bbf926d0a676d0c5e338c31144ee4209e113 (diff) |
- modern toolbar bug emulation
- useless field privateIcon removed;
- another useless code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@897 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r-- | plugins/TopToolBar/toolbar.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp index 02338c69b7..156f378937 100644 --- a/plugins/TopToolBar/toolbar.cpp +++ b/plugins/TopToolBar/toolbar.cpp @@ -555,10 +555,8 @@ static void PaintToolbar(HWND hwnd) HBITMAP hOldBmp = (HBITMAP)SelectObject(hdcMem, hBmpOsb);
SetBkMode(hdcMem, TRANSPARENT);
- HBRUSH hBrush, hoBrush;
-
- hBrush = CreateSolidBrush(bkColour);
- hoBrush = (HBRUSH)SelectObject(hdcMem, hBrush);
+ HBRUSH hBrush = CreateSolidBrush(bkColour);
+ HBRUSH hoBrush = (HBRUSH)SelectObject(hdcMem, hBrush);
FillRect(hdcMem, rcPaint, hBrush);
SelectObject(hdcMem, hoBrush);
DeleteObject(hBrush);
|