From 7205e006b83f8cbeb70c10507cfc2de7698cc4e9 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 14 Nov 2012 13:36:09 +0000 Subject: tabs and spaces cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clcutils.cpp | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'src/modules/clist/clcutils.cpp') diff --git a/src/modules/clist/clcutils.cpp b/src/modules/clist/clcutils.cpp index 19367af5ad..a6326e05fa 100644 --- a/src/modules/clist/clcutils.cpp +++ b/src/modules/clist/clcutils.cpp @@ -453,7 +453,8 @@ void fnDeleteFromContactList(HWND hwnd, struct ClcData *dat) case CLCIT_CONTACT: CallService("CList/DeleteContactCommand", (WPARAM)contact->hContact, (LPARAM)hwnd); break; -} } + } +} static WNDPROC OldRenameEditWndProc; static LRESULT CALLBACK RenameEditSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) @@ -685,7 +686,8 @@ void fnGetDefaultFontSetting(int i, LOGFONT* lf, COLORREF* colour) case FONTID_NOTONLIST: *colour = GetSysColor(COLOR_3DSHADOW); break; -} } + } +} void fnGetFontSetting(int i, LOGFONT* lf, COLORREF* colour) { @@ -721,7 +723,7 @@ void fnGetFontSetting(int i, LOGFONT* lf, COLORREF* colour) void fnLoadClcOptions(HWND hwnd, struct ClcData *dat) { dat->rowHeight = db_get_b(NULL, "CLC", "RowHeight", CLCDEFAULT_ROWHEIGHT); - + LOGFONT lf; SIZE fontSize; @@ -775,7 +777,7 @@ void fnLoadClcOptions(HWND hwnd, struct ClcData *dat) dat->hotTextColour = db_get_dw(NULL, "CLC", "HotTextColour", CLCDEFAULT_HOTTEXTCOLOUR); dat->quickSearchColour = db_get_dw(NULL, "CLC", "QuickSearchColour", CLCDEFAULT_QUICKSEARCHCOLOUR); dat->useWindowsColours = db_get_b(NULL, "CLC", "UseWinColours", CLCDEFAULT_USEWINDOWSCOLOURS); - + NMHDR hdr; hdr.code = CLN_OPTIONSCHANGED; hdr.hwndFrom = hwnd; @@ -856,23 +858,28 @@ void fnInvalidateItem(HWND hwnd, struct ClcData *dat, int iItem) // row coord functions int fnGetRowTopY(struct ClcData *dat, int item) -{ return item * dat->rowHeight; +{ + return item * dat->rowHeight; } int fnGetRowBottomY(struct ClcData *dat, int item) -{ return (item+1) * dat->rowHeight; +{ + return (item+1) * dat->rowHeight; } int fnGetRowTotalHeight(struct ClcData *dat) -{ return dat->rowHeight * cli.pfnGetGroupContentsCount(&dat->list, 1); +{ + return dat->rowHeight * cli.pfnGetGroupContentsCount(&dat->list, 1); } int fnGetRowHeight(struct ClcData *dat, int) -{ return dat->rowHeight; +{ + return dat->rowHeight; } int fnRowHitTest(struct ClcData *dat, int y) -{ if ( !dat->rowHeight) +{ + if ( !dat->rowHeight) return y; return y / dat->rowHeight; } -- cgit v1.2.3