From 9f5f3d03bbbaddc45e69c44f5e37fb5b324e03ef Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 27 Apr 2015 05:29:06 +0000 Subject: Clist_blind common project git-svn-id: http://svn.miranda-ng.org/main/trunk@13187 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_blind/src/init.cpp | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) (limited to 'plugins/Clist_blind/src/init.cpp') diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp index fcda5bb81a..bf7a49885f 100644 --- a/plugins/Clist_blind/src/init.cpp +++ b/plugins/Clist_blind/src/init.cpp @@ -22,7 +22,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" int hLangpack; HINSTANCE g_hInst = 0; @@ -53,7 +53,7 @@ int CListOptInit(WPARAM wParam, LPARAM lParam); ///////////////////////////////////////////////////////////////////////////////////////// // dll stub -BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved) +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD, LPVOID) { g_hInst = hInstDLL; DisableThreadLibraryCalls(g_hInst); @@ -77,7 +77,7 @@ PLUGININFOEX pluginInfo = { {0x53e095a3, 0x2695, 0x490a, {0x9d, 0xad, 0xd2, 0x4, 0x79, 0x9, 0x38, 0x31}} }; -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) { return &pluginInfo; } @@ -90,7 +90,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_CLIST, ///////////////////////////////////////////////////////////////////////////////////////// // called when number of accounts has been changed -static int OnAccountsChanged(WPARAM wParam, LPARAM lParam) +static int OnAccountsChanged(WPARAM, LPARAM) { himlCListClc = (HIMAGELIST)CallService(MS_CLIST_GETICONSIMAGELIST, 0, 0); return 0; @@ -99,7 +99,7 @@ static int OnAccountsChanged(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // called when all modules got loaded -static int OnModulesLoaded(WPARAM wParam, LPARAM lParam) +static int OnModulesLoaded(WPARAM, LPARAM) { himlCListClc = (HIMAGELIST)CallService(MS_CLIST_GETICONSIMAGELIST, 0, 0); return 0; @@ -119,7 +119,7 @@ static int OnOptsInit(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // menu status services -static INT_PTR GetStatusMode(WPARAM wParam, LPARAM lParam) +static INT_PTR GetStatusMode(WPARAM, LPARAM) { return pcli->currentDesiredStatusMode; } @@ -418,20 +418,6 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L return coreCli.pfnContactListControlWndProc(hwnd, msg, wParam, lParam); } -static int GetRealStatus(struct ClcContact *contact, int status) -{ - int i; - char *szProto = contact->proto; - if (!szProto) - return status; - for (i = 0; i < pcli->hClcProtoCount; i++) { - if (!mir_strcmp(pcli->clcProto[i].szProto, szProto)) { - return pcli->clcProto[i].dwStatus; - } - } - return status; -} - TCHAR status_name[128]; TCHAR *GetStatusName(struct ClcContact *item) { @@ -596,7 +582,6 @@ void RebuildEntireListInternal(HWND hwnd, ClcData *tmp_dat, BOOL call_orig) } case CLCIT_CONTACT: { - char *szCounts = pcli->pfnGetGroupCountsText((ClcData*)dat, item); const TCHAR *t[] = { _T("%name%"), _T("%status%"), @@ -665,11 +650,11 @@ void SetGroupExpand(HWND hwnd, ClcData *dat, struct ClcGroup *group, int newStat dat->need_rebuild = TRUE; } -void ScrollTo(HWND hwnd, ClcData *dat, int desty, int noSmooth) +void ScrollTo(HWND, ClcData*, int, int) { } -void RecalcScrollBar(HWND hwnd, ClcData *dat) +void RecalcScrollBar(HWND, ClcData*) { } @@ -681,7 +666,7 @@ void LoadClcOptions(HWND hwnd, ClcData *dat, BOOL bFirst) dat->rowHeight = SendMessage(dat->hwnd_list, LB_GETITEMHEIGHT, 0, 0); } -int GetRowHeight(ClcData *dat, int item) +int GetRowHeight(ClcData *dat, int) { dat->rowHeight = SendMessage(dat->hwnd_list, LB_GETITEMHEIGHT, 0, 0); return dat->rowHeight; -- cgit v1.2.3