summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-11-14 05:21:00 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-11-14 05:21:00 +0000
commit1a9a5f548e8f507a60997f59a0e09d94b2d6f2b8 (patch)
tree198db25a144b568247f23b4232ee238aa4a48dda /src
parent9b2819919a15aaf76d51c18426ed258967e3fb57 (diff)
tabs and spaces cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/button/button.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp
index 0b114ce4a5..d1fec36365 100644
--- a/src/modules/button/button.cpp
+++ b/src/modules/button/button.cpp
@@ -173,15 +173,15 @@ static void PaintWorker(MButtonCtrl *ctl, HDC hdcPaint)
int textLen = GetWindowTextLength(ctl->hwnd);
if (ctl->hIcon) {
- LONG g_cxsmIcon = GetSystemMetrics(SM_CXSMICON);
- LONG g_cysmIcon = GetSystemMetrics(SM_CYSMICON);
+ LONG g_cxsmIcon = GetSystemMetrics(SM_CXSMICON);
+ LONG g_cysmIcon = GetSystemMetrics(SM_CYSMICON);
int ix = (rcClient.right-rcClient.left)/2 - (g_cxsmIcon/2);
int iy = (rcClient.bottom-rcClient.top)/2 - (g_cysmIcon/2);
if (ctl->stateId == PBS_PRESSED) {
ix++;
iy++;
}
-
+
HIMAGELIST hImageList = ImageList_Create(g_cxsmIcon, g_cysmIcon, ILC_MASK | (IsWinVerXPPlus() ? ILC_COLOR32 : ILC_COLOR16), 1, 0);
ImageList_AddIcon(hImageList, ctl->hIcon);
HICON hIconNew = ImageList_GetIcon(hImageList, 0, ILD_NORMAL);
@@ -264,7 +264,7 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
if (SUCCEEDED(CoCreateInstance(CLSID_AccPropServices, NULL, CLSCTX_SERVER, IID_IAccPropServices, (void**)&bct->pAccPropServices))) {
// Annotating the Role of this object to be PushButton
SetHwndPropInt(bct, OBJID_CLIENT, CHILDID_SELF, PROPID_ACC_ROLE, ROLE_SYSTEM_PUSHBUTTON);
- }
+ }
else bct->pAccPropServices = NULL;
SetWindowLongPtr(hwnd, 0, (LONG_PTR)bct);
if (((CREATESTRUCT *)lParam)->lpszName) SetWindowText(hwnd, ((CREATESTRUCT *)lParam)->lpszName);
@@ -636,8 +636,9 @@ void UnloadButtonModule()
if ( !bModuleInitialized)
return;
- { mir_cslock lck(csTips);
+ {
+ mir_cslock lck(csTips);
lToolTips.destroy();
- }
+ }
DeleteCriticalSection(&csTips);
}