From 96d6803160cff5941a7d4e3913eb5fcc41a98fc9 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 7 Oct 2014 20:46:56 +0000 Subject: IEView: - Removed PNG-workaround for old Internet Explorer - BBCode "img" now supports "https"-links (fixes #805) git-svn-id: http://svn.miranda-ng.org/main/trunk@10737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/Options.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'plugins/IEView/src/Options.cpp') diff --git a/plugins/IEView/src/Options.cpp b/plugins/IEView/src/Options.cpp index a027be03ec..c9ea0b3e4a 100644 --- a/plugins/IEView/src/Options.cpp +++ b/plugins/IEView/src/Options.cpp @@ -477,7 +477,6 @@ static void MarkChanges(int i, HWND hWnd) static INT_PTR CALLBACK IEViewGeneralOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { - int i; switch (msg) { case WM_INITDIALOG: { @@ -489,9 +488,6 @@ static INT_PTR CALLBACK IEViewGeneralOptDlgProc(HWND hwndDlg, UINT msg, WPARAM w if (Options::getGeneralFlags() & Options::GENERAL_ENABLE_FLASH) { CheckDlgButton(hwndDlg, IDC_ENABLE_FLASH, TRUE); } - if (Options::getGeneralFlags() & Options::GENERAL_ENABLE_PNGHACK) { - CheckDlgButton(hwndDlg, IDC_ENABLE_PNGHACK, TRUE); - } if (Options::getGeneralFlags() & Options::GENERAL_SMILEYINNAMES) { CheckDlgButton(hwndDlg, IDC_SMILEYS_IN_NAMES, TRUE); } @@ -504,7 +500,7 @@ static INT_PTR CALLBACK IEViewGeneralOptDlgProc(HWND hwndDlg, UINT msg, WPARAM w EnableWindow(GetDlgItem(hwndDlg, IDC_SMILEYS_IN_NAMES), Options::isSmileyAdd()); EnableWindow(GetDlgItem(hwndDlg, IDC_EMBED_SIZE), IsDlgButtonChecked(hwndDlg, IDC_ENABLE_EMBED)); TCHAR* size[] = { _T("320 x 205"), _T("480 x 385") , _T("560 x 349"), _T("640 x 390")}; - for (i = 0; i < SIZEOF(size); ++i){ + for (int i = 0; i < SIZEOF(size); ++i){ int item=SendDlgItemMessage(hwndDlg,IDC_EMBED_SIZE,CB_ADDSTRING,0,(LPARAM)TranslateTS(size[i])); SendDlgItemMessage(hwndDlg,IDC_EMBED_SIZE,CB_SETITEMDATA,item,0); } @@ -516,7 +512,6 @@ static INT_PTR CALLBACK IEViewGeneralOptDlgProc(HWND hwndDlg, UINT msg, WPARAM w switch (LOWORD(wParam)) { case IDC_ENABLE_BBCODES: case IDC_ENABLE_FLASH: - case IDC_ENABLE_PNGHACK: case IDC_SMILEYS_IN_NAMES: case IDC_NO_BORDER: case IDC_EMBED_SIZE: @@ -533,16 +528,13 @@ static INT_PTR CALLBACK IEViewGeneralOptDlgProc(HWND hwndDlg, UINT msg, WPARAM w { switch (((LPNMHDR) lParam)->code) { case PSN_APPLY: - i = 0; + int i = 0; if (IsDlgButtonChecked(hwndDlg, IDC_ENABLE_BBCODES)) { i |= Options::GENERAL_ENABLE_BBCODES; } if (IsDlgButtonChecked(hwndDlg, IDC_ENABLE_FLASH)) { i |= Options::GENERAL_ENABLE_FLASH; } - if (IsDlgButtonChecked(hwndDlg, IDC_ENABLE_PNGHACK)) { - i |= Options::GENERAL_ENABLE_PNGHACK; - } if (IsDlgButtonChecked(hwndDlg, IDC_SMILEYS_IN_NAMES)) { i |= Options::GENERAL_SMILEYINNAMES; } -- cgit v1.2.3