diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-23 13:32:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-23 13:32:02 +0000 |
commit | c8b51e0745cc481644752d29c1c779e14e3530bb (patch) | |
tree | 4e160962d2c13cccb8dc39f29a897c3f84487f6a /plugins/Clist_nicer/src/clc.cpp | |
parent | 0c4dc97b703e93e2503c9cabedaa6c42984d0f00 (diff) |
- optimization in cli_SaveStateAndRebuildList applied to all clists (bLockScrollbar);
- boolean variables were made bool;
git-svn-id: http://svn.miranda-ng.org/main/trunk@16863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clc.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clc.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp index 8bb428058e..789afa91ac 100644 --- a/plugins/Clist_nicer/src/clc.cpp +++ b/plugins/Clist_nicer/src/clc.cpp @@ -236,16 +236,16 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L SetWindowLongPtr(hwnd, 0, (LONG_PTR)dat);
RowHeight::Init(dat);
- dat->forceScroll = 0;
+ dat->bForceScroll = false;
dat->lastRepaint = 0;
dat->hwndParent = GetParent(hwnd);
dat->lastSort = GetTickCount();
- dat->needsResort = FALSE;
+ dat->bNeedsResort = false;
{
CREATESTRUCT *cs = (CREATESTRUCT *)lParam;
if (cs->lpCreateParams == (LPVOID)0xff00ff00) {
- dat->bisEmbedded = FALSE;
- dat->bHideSubcontacts = TRUE;
+ dat->bisEmbedded = false;
+ dat->bHideSubcontacts = true;
cfg::clcdat = dat;
if (cfg::dat.bShowLocalTime)
SetTimer(hwnd, TIMERID_REFRESH, 65000, NULL);
@@ -298,7 +298,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L nm.hItem = (HANDLE)wParam;
SendMessage(GetParent(hwnd), WM_NOTIFY, 0, (LPARAM)&nm);
}
- dat->needsResort = TRUE;
+ dat->bNeedsResort = true;
PostMessage(hwnd, INTM_SORTCLC, 0, 1);
}
return DefWindowProc(hwnd, msg, wParam, lParam);
@@ -362,7 +362,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L else
dat->selection = -1;
}
- dat->needsResort = TRUE;
+ dat->bNeedsResort = true;
PostMessage(hwnd, INTM_SORTCLC, 0, recalcScrollBar);
PostMessage(hwnd, INTM_INVALIDATE, 0, contactRemoved ? 0 : wParam);
if (recalcScrollBar)
@@ -408,7 +408,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L RTL_DetectAndSet(contact, 0);
- dat->needsResort = TRUE;
+ dat->bNeedsResort = true;
PostMessage(hwnd, INTM_SORTCLC, 0, 0);
return DefWindowProc(hwnd, msg, wParam, lParam);
@@ -494,7 +494,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L RTL_DetectAndSet(contact, 0);
- dat->needsResort = TRUE;
+ dat->bNeedsResort = true;
PostMessage(hwnd, INTM_SORTCLC, 0, 0);
return DefWindowProc(hwnd, msg, wParam, lParam);
@@ -502,18 +502,18 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L if (!dat->bNeedPaint) {
KillTimer(hwnd, TIMERID_PAINT);
SetTimer(hwnd, TIMERID_PAINT, 100, NULL);
- dat->bNeedPaint = TRUE;
+ dat->bNeedPaint = true;
}
return DefWindowProc(hwnd, msg, wParam, lParam);
case INTM_FORCESORT:
- dat->needsResort = TRUE;
+ dat->bNeedsResort = true;
return SendMessage(hwnd, INTM_SORTCLC, wParam, lParam);
case INTM_SORTCLC:
- if (dat->needsResort) {
+ if (dat->bNeedsResort) {
pcli->pfnSortCLC(hwnd, dat, TRUE);
- dat->needsResort = FALSE;
+ dat->bNeedsResort = false;
}
if (lParam)
pcli->pfnRecalcScrollBar(hwnd, dat);
@@ -590,7 +590,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L return DefWindowProc(hwnd, msg, wParam, lParam);
case WM_MOUSEWHEEL:
- dat->forceScroll = TRUE;
+ dat->bForceScroll = true;
break;
case WM_TIMER:
|