diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-15 18:03:32 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-15 18:03:32 +0000 |
commit | 9c0d55bd428ac4b2b410fcc1c3e9dbc9a7ff5464 (patch) | |
tree | 53ab6030c00b17f52b0b7efc8027664347fd11e7 /plugins/NewsAggregator | |
parent | 0f2e65a495f39f50e0d3fe1ee030a0e0df1cc7bc (diff) |
minor fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r-- | plugins/NewsAggregator/Src/Options.cpp | 5 | ||||
-rw-r--r-- | plugins/NewsAggregator/Src/Services.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/Options.cpp b/plugins/NewsAggregator/Src/Options.cpp index 1a91683e20..f5dd37b9f9 100644 --- a/plugins/NewsAggregator/Src/Options.cpp +++ b/plugins/NewsAggregator/Src/Options.cpp @@ -467,6 +467,8 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CHANGE), FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_REMOVE), FALSE);
CreateList(hwndList);
UpdateList(hwndList);
CheckDlgButton(hwndDlg, IDC_STARTUPRETRIEVE, db_get_b(NULL, MODULE, "StartupRetrieve", 1) ? BST_CHECKED : BST_UNCHECKED);
@@ -564,6 +566,8 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA case LVN_ITEMCHANGED:
NMLISTVIEW *nmlv = (NMLISTVIEW *)lParam;
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CHANGE), TRUE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_REMOVE), TRUE);
if (((nmlv->uNewState ^ nmlv->uOldState) & LVIS_STATEIMAGEMASK) && !UpdateListFlag)
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
@@ -575,7 +579,6 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA int OptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
- odp.position = 100000000;
odp.hInstance = hInst;
odp.flags = ODPF_BOLDGROUPS;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp index 782c2ea88f..c41971d662 100644 --- a/plugins/NewsAggregator/Src/Services.cpp +++ b/plugins/NewsAggregator/Src/Services.cpp @@ -126,7 +126,7 @@ INT_PTR NewsAggrGetStatus(WPARAM, LPARAM) return g_nStatus;
}
-INT_PTR NewsAggrLoadIcon(WPARAM wParam, LPARAM )
+INT_PTR NewsAggrLoadIcon(WPARAM wParam, LPARAM)
{
return (LOWORD(wParam) == PLI_PROTOCOL) ? (INT_PTR)CopyIcon(LoadIconEx("main", FALSE)) : 0;
}
|