From 7672d908dc1ee24f95fe5d1b4fd08bdfa6cd12a4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 2 Jan 2013 09:50:24 +0000 Subject: fixed #108 git-svn-id: http://svn.miranda-ng.org/main/trunk@2899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Options.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/PluginUpdater/src/Options.cpp') diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp index 68bd49841d..952ba48951 100644 --- a/plugins/PluginUpdater/src/Options.cpp +++ b/plugins/PluginUpdater/src/Options.cpp @@ -196,9 +196,7 @@ INT_PTR CALLBACK DlgPopUpOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) CheckDlgButton(hdlg, IDC_USEPOPUPCOLORS, BST_CHECKED); CheckDlgButton(hdlg, IDC_USEWINCOLORS, BST_UNCHECKED); } - SendDlgItemMessage(hdlg, (42071), CPM_SETCOLOUR, 0, PopupsList[0].colorBack); - SendDlgItemMessage(hdlg, (41071), CPM_SETCOLOUR, 0, PopupsList[0].colorText); - for (i = 1; i < POPUPS; i++) { + for (i = 0; i < POPUPS; i++) { SendDlgItemMessage(hdlg, (i+42071), CPM_SETCOLOUR, 0, PopupsList[i].colorBack); SendDlgItemMessage(hdlg, (i+41071), CPM_SETCOLOUR, 0, PopupsList[i].colorText); EnableWindow(GetDlgItem(hdlg, (i+42071)), (PopupOptions.DefColors == byCOLOR_OWN)); @@ -229,14 +227,10 @@ INT_PTR CALLBACK DlgPopUpOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) } EnableWindow(GetDlgItem(hdlg, (40071)), FALSE); - EnableWindow(GetDlgItem(hdlg, (41071)), FALSE); - EnableWindow(GetDlgItem(hdlg, (42071)), FALSE); return TRUE; case WM_SHOWWINDOW: EnableWindow(GetDlgItem(hdlg, (40071)), FALSE); - EnableWindow(GetDlgItem(hdlg, (41071)), FALSE); - EnableWindow(GetDlgItem(hdlg, (42071)), FALSE); return TRUE; case WM_COMMAND: @@ -272,10 +266,7 @@ INT_PTR CALLBACK DlgPopUpOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) PopupOptions.DefColors = byCOLOR_OWN; - EnableWindow(GetDlgItem(hdlg, (41071)), FALSE); - EnableWindow(GetDlgItem(hdlg, (42071)), FALSE); - - for (i = 1; i < POPUPS; i++) { + for (i = 0; i < POPUPS; i++) { EnableWindow(GetDlgItem(hdlg, (i+42071)), TRUE); //Background EnableWindow(GetDlgItem(hdlg, (i+41071)), TRUE); //Text } -- cgit v1.2.3