summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/themes.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-13 21:28:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-13 21:28:51 +0000
commit80773d07115cf8d2874d49f6e2378f736db771f6 (patch)
tree368cecdae9aed0127a081aa1fcda0f1b4e453a83 /plugins/TabSRMM/src/themes.cpp
parenteeb6205dc25a58b4651170b9800ae37cfbcef281 (diff)
tabSRMM warning level 4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11381 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/themes.cpp')
-rw-r--r--plugins/TabSRMM/src/themes.cpp50
1 files changed, 24 insertions, 26 deletions
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp
index 502404f187..4721f218fa 100644
--- a/plugins/TabSRMM/src/themes.cpp
+++ b/plugins/TabSRMM/src/themes.cpp
@@ -625,7 +625,7 @@ void __fastcall CImageItem::Render(const HDC hdc, const RECT *rc, bool fIgnoreGl
BOOL isGlyph = ((m_dwFlags & IMAGE_GLYPH) && Skin->haveGlyphItem());
BOOL fCleanUp = TRUE;
HDC hdcSrc = 0;
- HBITMAP hbmOld;
+ HBITMAP hbmOld = 0;
LONG srcOrigX = isGlyph ? m_glyphMetrics[0] : 0;
LONG srcOrigY = isGlyph ? m_glyphMetrics[1] : 0;
@@ -1528,8 +1528,6 @@ void CSkin::LoadItems()
TCHAR *p, *p1;
TIconDesc tmpIconDesc = { 0 };
- CImageItem *pItem = m_ImageItems;
-
if (m_skinIcons == NULL)
m_skinIcons = (TIconDescW *)mir_calloc(sizeof(TIconDescW) * NR_MAXSKINICONS);
@@ -2323,7 +2321,7 @@ void CSkin::FinalizeBufferedPaint(HANDLE hbp, RECT *rc)
// default is none, needed forsome special
// effects. default paramenter is 0
-void CSkin::ApplyAeroEffect(const HDC hdc, const RECT *rc, int iEffectArea, HANDLE hbp)
+void CSkin::ApplyAeroEffect(const HDC hdc, const RECT *rc, int iEffectArea)
{
if (m_pCurrentAeroEffect == 0 || m_aeroEffect == AERO_EFFECT_NONE)
return;
@@ -2457,31 +2455,31 @@ void CSkin::extractSkinsAndLogo(bool fForceOverwrite) const
/////////////////////////////////////////////////////////////////////////////////////////
// redraw the splitter area between the message input and message log area only
-void CSkin::UpdateToolbarBG(TWindowData *dat, DWORD dwRdwOptFlags)
+void CSkin::UpdateToolbarBG(TWindowData *dat)
{
- RECT rcUpdate, rcTmp;
- POINT pt;
-
- if (dat) {
- ::GetWindowRect(::GetDlgItem(dat->hwnd, dat->bType == SESSIONTYPE_IM ? IDC_LOG : IDC_CHAT_LOG), &rcTmp);
-
- pt.x = rcTmp.left;
- pt.y = rcTmp.top;
- ::ScreenToClient(dat->hwnd, &pt);
-
- rcUpdate.left = 0;
- rcUpdate.top = pt.y;
+ if (dat == NULL)
+ return;
- ::GetClientRect(dat->hwnd, &rcTmp);
- rcUpdate.right = rcTmp.right;
- rcUpdate.bottom = rcTmp.bottom;
+ RECT rcUpdate, rcTmp;
+ ::GetWindowRect(::GetDlgItem(dat->hwnd, dat->bType == SESSIONTYPE_IM ? IDC_LOG : IDC_CHAT_LOG), &rcTmp);
- if (M.isAero() || M.isDwmActive())
- dat->fLimitedUpdate = true; // skip unrelevant window updates when we have buffered paint avail
- ::RedrawWindow(dat->hwnd, &rcUpdate, 0, RDW_INVALIDATE | RDW_ERASE | RDW_UPDATENOW);
- ::BB_RedrawButtons(dat);
- dat->fLimitedUpdate = false;
- }
+ POINT pt;
+ pt.x = rcTmp.left;
+ pt.y = rcTmp.top;
+ ::ScreenToClient(dat->hwnd, &pt);
+
+ rcUpdate.left = 0;
+ rcUpdate.top = pt.y;
+
+ ::GetClientRect(dat->hwnd, &rcTmp);
+ rcUpdate.right = rcTmp.right;
+ rcUpdate.bottom = rcTmp.bottom;
+
+ if (M.isAero() || M.isDwmActive())
+ dat->fLimitedUpdate = true; // skip unrelevant window updates when we have buffered paint avail
+ ::RedrawWindow(dat->hwnd, &rcUpdate, 0, RDW_INVALIDATE | RDW_ERASE | RDW_UPDATENOW);
+ ::BB_RedrawButtons(dat);
+ dat->fLimitedUpdate = false;
}
/////////////////////////////////////////////////////////////////////////////////////////