diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-26 18:39:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-26 18:39:48 +0000 |
commit | 3f00912895ae0820b4db9ae7081f5ffcba1b074c (patch) | |
tree | d9524551ee0fa19ffb93e7035de334962900dd40 /plugins/ContactsPlus/src/send.cpp | |
parent | 535d64f23c465e90f0743108b247563dc2387af7 (diff) |
stupid duplicated code of embedded clists removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus/src/send.cpp')
-rw-r--r-- | plugins/ContactsPlus/src/send.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
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;
|