From 3f00912895ae0820b4db9ae7081f5ffcba1b074c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 26 Jul 2014 18:39:48 +0000 Subject: stupid duplicated code of embedded clists removed git-svn-id: http://svn.miranda-ng.org/main/trunk@9953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ContactsPlus/src/send.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'plugins/ContactsPlus') diff --git a/plugins/ContactsPlus/src/send.cpp b/plugins/ContactsPlus/src/send.cpp index 461910b721..91a32f2a1a 100644 --- a/plugins/ContactsPlus/src/send.cpp +++ b/plugins/ContactsPlus/src/send.cpp @@ -160,25 +160,6 @@ int TSendContactsData::SendContacts(HWND hwndDlg) /* Send Dialog Implementation */ -static void ResetListOptions(HWND hwndList) -{ - COLORREF bgColour, fgColour; - - SendMessage(hwndList, CLM_SETBKBITMAP, 0, (LPARAM)(HBITMAP)NULL); - bgColour = GetSysColor(COLOR_WINDOW); - SendMessage(hwndList, CLM_SETBKCOLOR, bgColour, 0); - SendMessage(hwndList, CLM_SETGREYOUTFLAGS, 0, 0); - SendMessage(hwndList, CLM_SETLEFTMARGIN, 4, 0); - SendMessage(hwndList, CLM_SETINDENT, 10, 0); - for (int i = 0; i <= FONTID_MAX; i++) { - fgColour = (COLORREF)SendMessage(hwndList, CLM_GETTEXTCOLOR, i, 0); - if (abs(GetRValue(fgColour) - GetRValue(bgColour)) < 10 && - abs(GetGValue(fgColour) - GetGValue(bgColour)) < 10 && - abs(GetBValue(fgColour) - GetBValue(bgColour)) < 10) - SendMessage(hwndList, CLM_SETTEXTCOLOR, i, GetSysColor(COLOR_WINDOWTEXT)); - } -} - static MCONTACT FindNextClistContact(HWND hList, MCONTACT hContact, MCONTACT *phItem) { MCONTACT hNextContact = db_find_next(hContact); @@ -250,7 +231,6 @@ INT_PTR CALLBACK SendDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara case WM_INITDIALOG: TranslateDialogDefault(hwndDlg); SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(hInst, MAKEINTRESOURCE(IDI_CONTACTS))); - ResetListOptions(GetDlgItem(hwndDlg, IDC_LIST)); SetAllContactChecks(GetDlgItem(hwndDlg, IDC_LIST), lParam); WindowList_Add(ghSendWindowList, hwndDlg, lParam); wndData = new TSendContactsData(lParam); @@ -275,9 +255,6 @@ INT_PTR CALLBACK SendDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara case CLN_NEWCONTACT: case CLN_LISTREBUILT: // rebuild list if (wndData) SetAllContactChecks(GetDlgItem(hwndDlg, IDC_LIST), wndData->hContact); - case CLN_OPTIONSCHANGED: - ResetListOptions(GetDlgItem(hwndDlg, IDC_LIST)); - break; } } break; -- cgit v1.2.3