From fefdc28f87152a94fc7397ebb00242b3ba15a286 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 8 Jan 2013 17:20:59 +0000 Subject: added toptoolbar support git-svn-id: http://svn.miranda-ng.org/main/trunk@3018 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Common.h | 2 ++ plugins/NewsAggregator/Src/NewsAggregator.cpp | 12 ++++-------- plugins/NewsAggregator/Src/Services.cpp | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 8 deletions(-) (limited to 'plugins/NewsAggregator') diff --git a/plugins/NewsAggregator/Src/Common.h b/plugins/NewsAggregator/Src/Common.h index cb4f99e5a2..9eaa4adafd 100644 --- a/plugins/NewsAggregator/Src/Common.h +++ b/plugins/NewsAggregator/Src/Common.h @@ -41,6 +41,7 @@ Boston, MA 02111-1307, USA. #include #include +#include #include "version.h" #include "resource.h" @@ -109,6 +110,7 @@ INT_PTR ImportFeeds(WPARAM wParam, LPARAM lParam); INT_PTR ExportFeeds(WPARAM wParam, LPARAM lParam); INT_PTR CheckFeed(WPARAM wParam, LPARAM lParam); INT_PTR EnableDisable(WPARAM wParam, LPARAM lParam); +INT_PTR OnToolbarLoaded(WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK DlgProcAddFeedOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK DlgProcChangeFeedOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK DlgProcChangeFeedMenu(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp index 141052d60d..e5eb15e66f 100644 --- a/plugins/NewsAggregator/Src/NewsAggregator.cpp +++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp @@ -22,7 +22,7 @@ Boston, MA 02111-1307, USA. HINSTANCE hInst = NULL; int hLangpack; -HANDLE hOptHook = NULL, hLoadHook = NULL, hOnPreShutdown = NULL, hPrebuildMenuHook = NULL, hPackUpdaterFolder = NULL; +HANDLE hPrebuildMenuHook = NULL, hPackUpdaterFolder = NULL; HANDLE hProtoService[8]; HWND hAddFeedDlg; HANDLE hChangeFeedDlgList = NULL; @@ -78,9 +78,9 @@ extern "C" __declspec(dllexport) int Load(void) } // Add options hook - hOptHook = HookEvent(ME_OPT_INITIALISE, OptInit); - hLoadHook = HookEvent(ME_SYSTEM_MODULESLOADED, NewsAggrInit); - hOnPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, NewsAggrPreShutdown); + HookEvent(ME_OPT_INITIALISE, OptInit); + HookEvent(ME_SYSTEM_MODULESLOADED, NewsAggrInit); + HookEvent(ME_SYSTEM_PRESHUTDOWN, NewsAggrPreShutdown); hUpdateMutex = CreateMutex(NULL, FALSE, NULL); hChangeFeedDlgList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST,0,0); @@ -116,10 +116,6 @@ extern "C" __declspec(dllexport) int Unload(void) for (int i = 0;i