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/Clist_blind.vcxproj | 28 +++ plugins/Clist_blind/Clist_blind.vcxproj.filters | 4 + plugins/Clist_blind/Clist_blind_10.vcxproj | 208 -------------------- plugins/Clist_blind/Clist_blind_10.vcxproj.filters | 62 ------ plugins/Clist_blind/Clist_blind_12.vcxproj | 211 --------------------- plugins/Clist_blind/Clist_blind_12.vcxproj.filters | 62 ------ plugins/Clist_blind/src/clcopts.cpp | 4 +- plugins/Clist_blind/src/clcpaint.cpp | 6 +- plugins/Clist_blind/src/clistmenus.cpp | 2 +- plugins/Clist_blind/src/clistopts.cpp | 4 +- plugins/Clist_blind/src/cluiopts.cpp | 4 +- plugins/Clist_blind/src/commonheaders.cpp | 1 - plugins/Clist_blind/src/commonheaders.h | 61 ------ plugins/Clist_blind/src/init.cpp | 33 +--- plugins/Clist_blind/src/stdafx.cxx | 18 ++ plugins/Clist_blind/src/stdafx.h | 61 ++++++ 16 files changed, 130 insertions(+), 639 deletions(-) create mode 100644 plugins/Clist_blind/Clist_blind.vcxproj create mode 100644 plugins/Clist_blind/Clist_blind.vcxproj.filters delete mode 100644 plugins/Clist_blind/Clist_blind_10.vcxproj delete mode 100644 plugins/Clist_blind/Clist_blind_10.vcxproj.filters delete mode 100644 plugins/Clist_blind/Clist_blind_12.vcxproj delete mode 100644 plugins/Clist_blind/Clist_blind_12.vcxproj.filters delete mode 100644 plugins/Clist_blind/src/commonheaders.cpp delete mode 100644 plugins/Clist_blind/src/commonheaders.h create mode 100644 plugins/Clist_blind/src/stdafx.cxx create mode 100644 plugins/Clist_blind/src/stdafx.h (limited to 'plugins') diff --git a/plugins/Clist_blind/Clist_blind.vcxproj b/plugins/Clist_blind/Clist_blind.vcxproj new file mode 100644 index 0000000000..42d7e26adc --- /dev/null +++ b/plugins/Clist_blind/Clist_blind.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + Clist_blind + {2E15C462-A150-4A37-ACD6-FBAECF1724F5} + + + + + \ No newline at end of file diff --git a/plugins/Clist_blind/Clist_blind.vcxproj.filters b/plugins/Clist_blind/Clist_blind.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/Clist_blind/Clist_blind.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/Clist_blind/Clist_blind_10.vcxproj b/plugins/Clist_blind/Clist_blind_10.vcxproj deleted file mode 100644 index 7b09730cf5..0000000000 --- a/plugins/Clist_blind/Clist_blind_10.vcxproj +++ /dev/null @@ -1,208 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Clist_blind - {2E15C462-A150-4A37-ACD6-FBAECF1724F5} - - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - ..\..\include;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - ..\..\include;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Disabled - ..\..\include;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - commonheaders.h - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin10\lib - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - - - - - Disabled - ..\..\include;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - commonheaders.h - Level3 - 4996;%(DisableSpecificWarnings) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - - - - - - - - - - - - - - - - - - - - Create - - - - - - - \ No newline at end of file diff --git a/plugins/Clist_blind/Clist_blind_10.vcxproj.filters b/plugins/Clist_blind/Clist_blind_10.vcxproj.filters deleted file mode 100644 index 4c209502d9..0000000000 --- a/plugins/Clist_blind/Clist_blind_10.vcxproj.filters +++ /dev/null @@ -1,62 +0,0 @@ - - - - - {7e24b5e6-2653-4143-a42b-d3486d5c416f} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {596c44cc-f8d3-4837-8fb4-49d4aa913452} - h;hpp;hxx;hm;inl - - - {9c926bbb-252f-489c-8433-2db02ad00ba7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Resource Files - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/Clist_blind/Clist_blind_12.vcxproj b/plugins/Clist_blind/Clist_blind_12.vcxproj deleted file mode 100644 index d6d6a7de65..0000000000 --- a/plugins/Clist_blind/Clist_blind_12.vcxproj +++ /dev/null @@ -1,211 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Clist_blind - {2E15C462-A150-4A37-ACD6-FBAECF1724F5} - - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Full - ..\..\include;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - Full - ..\..\include;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - Disabled - ..\..\include;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - commonheaders.h - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin12\lib - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - false - - - - - Disabled - ..\..\include;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - commonheaders.h - Level3 - 4996;%(DisableSpecificWarnings) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;UxTheme.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - - - - - - - - - - - - - - - - Create - - - - - - - \ No newline at end of file diff --git a/plugins/Clist_blind/Clist_blind_12.vcxproj.filters b/plugins/Clist_blind/Clist_blind_12.vcxproj.filters deleted file mode 100644 index 4c209502d9..0000000000 --- a/plugins/Clist_blind/Clist_blind_12.vcxproj.filters +++ /dev/null @@ -1,62 +0,0 @@ - - - - - {7e24b5e6-2653-4143-a42b-d3486d5c416f} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {596c44cc-f8d3-4837-8fb4-49d4aa913452} - h;hpp;hxx;hm;inl - - - {9c926bbb-252f-489c-8433-2db02ad00ba7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Resource Files - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/Clist_blind/src/clcopts.cpp b/plugins/Clist_blind/src/clcopts.cpp index b953dc8abb..e85a8c0631 100644 --- a/plugins/Clist_blind/src/clcopts.cpp +++ b/plugins/Clist_blind/src/clcopts.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" TCHAR* MyDBGetContactSettingTString(MCONTACT hContact, char* module, char* setting, TCHAR* out, size_t len, TCHAR *def); @@ -262,7 +262,7 @@ static INT_PTR CALLBACK DlgProcClcMainOpts(HWND hwndDlg, UINT msg, WPARAM wParam /****************************************************************************************/ -int ClcOptInit(WPARAM wParam, LPARAM lParam) +int ClcOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = g_hInst; diff --git a/plugins/Clist_blind/src/clcpaint.cpp b/plugins/Clist_blind/src/clcpaint.cpp index 4465622819..82ffbf2b43 100644 --- a/plugins/Clist_blind/src/clcpaint.cpp +++ b/plugins/Clist_blind/src/clcpaint.cpp @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License 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" extern HIMAGELIST himlCListClc; static BYTE divide3[765] = { 255 }; @@ -265,9 +265,9 @@ void PaintClc(HWND hwnd, struct ClcData *dat, HDC hdc, RECT * rcPaint) int selected = index == dat->selection && (dat->showSelAlways || dat->exStyle & CLS_EX_SHOWSELALWAYS || GetFocus() == hwnd) && group->cl.items[group->scanIndex]->type != CLCIT_DIVIDER; int hottrack = dat->exStyle & CLS_EX_TRACKSELECT && group->cl.items[group->scanIndex]->type != CLCIT_DIVIDER && dat->iHotTrack == index; - SIZE textSize, countsSize, spaceSize; + SIZE textSize, countsSize = { 0 }, spaceSize = { 0 }; int width, checkboxWidth; - char *szCounts; + char *szCounts = NULL; //alternating grey if (style & CLS_GREYALTERNATE && index & 1) { diff --git a/plugins/Clist_blind/src/clistmenus.cpp b/plugins/Clist_blind/src/clistmenus.cpp index 61fdc627a2..aed1426207 100644 --- a/plugins/Clist_blind/src/clistmenus.cpp +++ b/plugins/Clist_blind/src/clistmenus.cpp @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License 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_PTR CloseAction(WPARAM,LPARAM) { diff --git a/plugins/Clist_blind/src/clistopts.cpp b/plugins/Clist_blind/src/clistopts.cpp index 34f9a93111..1517723a09 100644 --- a/plugins/Clist_blind/src/clistopts.cpp +++ b/plugins/Clist_blind/src/clistopts.cpp @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License 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" static INT_PTR CALLBACK DlgProcGenOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { @@ -225,7 +225,7 @@ static INT_PTR CALLBACK DlgProcGenOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP static UINT expertOnlyControls[] = { IDC_ALWAYSSTATUS }; -int CListOptInit(WPARAM wParam, LPARAM lParam) +int CListOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.position = -1000000000; diff --git a/plugins/Clist_blind/src/cluiopts.cpp b/plugins/Clist_blind/src/cluiopts.cpp index 131850c74f..99a496b4cf 100644 --- a/plugins/Clist_blind/src/cluiopts.cpp +++ b/plugins/Clist_blind/src/cluiopts.cpp @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License 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" static INT_PTR CALLBACK DlgProcCluiOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { @@ -305,7 +305,7 @@ static UINT expertOnlyControls[] = IDC_STATIC22, IDC_AUTOSIZEUPWARD, IDC_SHOWMAINMENU, IDC_SHOWCAPTION, IDC_CLIENTDRAG }; -int CluiOptInit(WPARAM wParam, LPARAM lParam) +int CluiOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = g_hInst; diff --git a/plugins/Clist_blind/src/commonheaders.cpp b/plugins/Clist_blind/src/commonheaders.cpp deleted file mode 100644 index 14f99f7d71..0000000000 --- a/plugins/Clist_blind/src/commonheaders.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "commonheaders.h" diff --git a/plugins/Clist_blind/src/commonheaders.h b/plugins/Clist_blind/src/commonheaders.h deleted file mode 100644 index 122cd16ca1..0000000000 --- a/plugins/Clist_blind/src/commonheaders.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - -Miranda NG: the free IM client for Microsoft* Windows* - -Copyright (ñ) 2012-15 Miranda NG project (http://miranda-ng.org) -Copyright (c) 2000-05 Miranda ICQ/IM project, -all portions of this codebase are copyrighted to the people -listed in contributors.txt. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -*/ - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "resource.h" -#include "Version.h" - -struct ClcContact : public ClcContactBase {}; - -struct ClcData : public ClcDataBase -{ - HWND hwnd_list; - BOOL need_rebuild; -}; - -// shared vars -extern HINSTANCE g_hInst; -extern CLIST_INTERFACE coreCli; - -/* most free()'s are invalid when the code is executed from a dll, so this changes - all the bad free()'s to good ones, however it's still incorrect code. The reasons for not - changing them include: - - * db_free has a CallService() lookup - * free() is executed in some large loops to do with clist creation of group data - * easy search and replace - -*/ 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; diff --git a/plugins/Clist_blind/src/stdafx.cxx b/plugins/Clist_blind/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Clist_blind/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/Clist_blind/src/stdafx.h b/plugins/Clist_blind/src/stdafx.h new file mode 100644 index 0000000000..122cd16ca1 --- /dev/null +++ b/plugins/Clist_blind/src/stdafx.h @@ -0,0 +1,61 @@ +/* + +Miranda NG: the free IM client for Microsoft* Windows* + +Copyright (ñ) 2012-15 Miranda NG project (http://miranda-ng.org) +Copyright (c) 2000-05 Miranda ICQ/IM project, +all portions of this codebase are copyrighted to the people +listed in contributors.txt. + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "resource.h" +#include "Version.h" + +struct ClcContact : public ClcContactBase {}; + +struct ClcData : public ClcDataBase +{ + HWND hwnd_list; + BOOL need_rebuild; +}; + +// shared vars +extern HINSTANCE g_hInst; +extern CLIST_INTERFACE coreCli; + +/* most free()'s are invalid when the code is executed from a dll, so this changes + all the bad free()'s to good ones, however it's still incorrect code. The reasons for not + changing them include: + + * db_free has a CallService() lookup + * free() is executed in some large loops to do with clist creation of group data + * easy search and replace + +*/ -- cgit v1.2.3