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/BasicHistory/src | |
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/BasicHistory/src')
-rw-r--r-- | plugins/BasicHistory/src/HistoryWindow.cpp | 1 | ||||
-rw-r--r-- | plugins/BasicHistory/src/Options.cpp | 19 |
2 files changed, 0 insertions, 20 deletions
diff --git a/plugins/BasicHistory/src/HistoryWindow.cpp b/plugins/BasicHistory/src/HistoryWindow.cpp index cceb8098a7..e322532f7b 100644 --- a/plugins/BasicHistory/src/HistoryWindow.cpp +++ b/plugins/BasicHistory/src/HistoryWindow.cpp @@ -2352,7 +2352,6 @@ void HistoryWindow::SelectContact(MCONTACT _hContact) void ResetCList(HWND hWnd)
{
COLORREF bkCLColor = Options::instance->GetColor(Options::ContactListBackground);
- SendDlgItemMessage(hWnd, IDC_LIST_CONTACTS, CLM_SETBKBITMAP, 0, (LPARAM)(HBITMAP) NULL);
SendDlgItemMessage(hWnd, IDC_LIST_CONTACTS, CLM_SETBKCOLOR, bkCLColor, 0);
SendDlgItemMessage(hWnd, IDC_LIST_CONTACTS, CLM_SETUSEGROUPS, Options::instance->showContactGroups, 0);
}
diff --git a/plugins/BasicHistory/src/Options.cpp b/plugins/BasicHistory/src/Options.cpp index b7456985a6..1036f9945b 100644 --- a/plugins/BasicHistory/src/Options.cpp +++ b/plugins/BasicHistory/src/Options.cpp @@ -1556,17 +1556,6 @@ INT_PTR CALLBACK Options::DlgProcOptsScheduler(HWND hwndDlg, UINT msg, WPARAM wP return FALSE;
}
-void ResetListOptions(HWND hwnd)
-{
- SendMessage(hwnd, CLM_SETGREYOUTFLAGS, 0, 0);
- SendMessage(hwnd, CLM_SETLEFTMARGIN, 2, 0);
- SendMessage(hwnd, CLM_SETBKBITMAP, 0, (LPARAM)(HBITMAP) NULL);
- SendMessage(hwnd, CLM_SETBKCOLOR, GetSysColor(COLOR_WINDOW), 0);
- SendMessage(hwnd, CLM_SETINDENT, 10, 0);
- for (int i = 0; i <= FONTID_MAX; i++)
- SendMessage(hwnd, CLM_SETTEXTCOLOR, i, GetSysColor(COLOR_WINDOWTEXT));
-}
-
void RebuildList(HWND hwnd, MCONTACT hSystem, TaskOptions* to)
{
HANDLE hItem;
@@ -1739,7 +1728,6 @@ INT_PTR CALLBACK Options::DlgProcOptsTask(HWND hwndDlg, UINT msg, WPARAM wParam, cii.pszText = TranslateT("System");
hSystem = (MCONTACT)SendMessage(contactList, CLM_ADDINFOITEM, 0, (LPARAM) & cii);
SendMessage(contactList, CLM_AUTOREBUILD, 0, 0);
- ResetListOptions(contactList);
RebuildList(contactList, hSystem, to);
SendMessage(hwndDlg, WM_COMMAND, MAKEWPARAM(IDC_TASK_TYPE, CBN_SELCHANGE), NULL);
@@ -1928,13 +1916,6 @@ INT_PTR CALLBACK Options::DlgProcOptsTask(HWND hwndDlg, UINT msg, WPARAM wParam, }
}
return TRUE;
-
- case WM_NOTIFY:
- NMHDR* nmhdr = (NMHDR *) lParam;
- if (nmhdr->idFrom == IDC_LIST_CONTACTSEX && nmhdr->code == CLN_OPTIONSCHANGED)
- ResetListOptions(hwndDlg);
-
- return TRUE;
}
return FALSE;
|