diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-24 21:10:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-24 21:10:28 +0000 |
commit | ee445e9c96823f95a9a8fc47cb8a1bb40c706bec (patch) | |
tree | ca26808239050b4ec9935991127b9fbad9b602bb /src/core/stdfile/ftmanager.cpp | |
parent | 0eae5d3fe73c4db870912328fe2c41af89dcd01d (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@9572 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdfile/ftmanager.cpp')
-rw-r--r-- | src/core/stdfile/ftmanager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/stdfile/ftmanager.cpp b/src/core/stdfile/ftmanager.cpp index 835cf80922..abd07d2b91 100644 --- a/src/core/stdfile/ftmanager.cpp +++ b/src/core/stdfile/ftmanager.cpp @@ -76,8 +76,7 @@ static void LayoutTransfers(HWND hwnd, struct TFtPageData *dat) if (dat->wnds->realCount) {
HDWP hdwp = BeginDeferWindowPos(dat->wnds->realCount);
top -= dat->scrollPos;
- for (int i=0; i < dat->wnds->realCount; ++i)
- {
+ for (int i = 0; i < dat->wnds->realCount; ++i) {
int height = dat->wnds->items[i]->rc.bottom - dat->wnds->items[i]->rc.top;
hdwp = DeferWindowPos(hdwp, dat->wnds->items[i]->hwnd, NULL, 0, top, rc.right, height, SWP_NOZORDER);
top += height;
@@ -88,9 +87,9 @@ static void LayoutTransfers(HWND hwnd, struct TFtPageData *dat) dat->dataHeight = top;
- SCROLLINFO si = {0};
+ SCROLLINFO si = { 0 };
si.cbSize = sizeof(si);
- si.fMask = SIF_DISABLENOSCROLL|SIF_PAGE|SIF_RANGE;
+ si.fMask = SIF_DISABLENOSCROLL | SIF_PAGE | SIF_RANGE;
si.nPage = dat->height;
si.nMin = 0;
si.nMax = dat->dataHeight;
|