diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-17 12:24:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-17 12:24:04 +0000 |
commit | 800d1885d036ef2f7f1bc6f52f8855c03fb64705 (patch) | |
tree | 8803cfad08bad536c2a2eb21bd6a423e7a00e114 /plugins/Clist_modern/src/modern_tbbutton.cpp | |
parent | ebcd54e2b17388d93eb7ec9949f6571f002af259 (diff) |
- manual critical section control replaced with mir_cslock;
- unused variables removed;
git-svn-id: http://svn.miranda-ng.org/main/trunk@9838 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_tbbutton.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_tbbutton.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/modern_tbbutton.cpp b/plugins/Clist_modern/src/modern_tbbutton.cpp index 4274347583..ee5d5c521d 100644 --- a/plugins/Clist_modern/src/modern_tbbutton.cpp +++ b/plugins/Clist_modern/src/modern_tbbutton.cpp @@ -35,7 +35,6 @@ static HWND hwndToolTips = NULL; static BOOL bThemed = FALSE;
static HANDLE hButtonWindowList = NULL;
-static HANDLE hBkgChangedHook = NULL;
static int OnIconLibIconChanged(WPARAM wParam, LPARAM lParam)
{
@@ -250,11 +249,11 @@ static LRESULT CALLBACK ToolbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam break;
case BUTTONSETMARGINS:
- if (lParam) bct->rcMargins = *(RECT*)lParam;
- else {
- RECT nillRect = {0};
+ if (!lParam) {
+ RECT nillRect = { 0 };
bct->rcMargins = nillRect;
}
+ else bct->rcMargins = *(RECT*)lParam;
break;
case BUTTONSETID:
@@ -495,8 +494,8 @@ int Buttons_OnSkinModeSettingsChanged(WPARAM wParam, LPARAM lParam) HRESULT ToolbarButtonLoadModule()
{
hButtonWindowList = WindowList_Create();
- hIconChangedHook = HookEvent(ME_SKIN2_ICONSCHANGED,OnIconLibIconChanged);
- hBkgChangedHook = HookEvent(ME_BACKGROUNDCONFIG_CHANGED,Buttons_OnSkinModeSettingsChanged);
+ HookEvent(ME_SKIN2_ICONSCHANGED, OnIconLibIconChanged);
+ HookEvent(ME_BACKGROUNDCONFIG_CHANGED, Buttons_OnSkinModeSettingsChanged);
return S_OK;
}
|