From 75b1ff75c42644eb36552762652e4b0c9ff071bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Nov 2012 14:11:01 +0000 Subject: final switch to the typed icolib api git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/Db_autobackups/src') diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index 3c38af7ed6..75d9f71614 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -47,7 +47,7 @@ INT_PTR BackupServiceTrgr(WPARAM wParam, LPARAM lParam) return 0; } -static int FoldersGetBackupPath(WPARAM wParam, LPARAM lParam) +static int FoldersGetBackupPath(WPARAM wParam, LPARAM lParam) { FoldersGetCustomPathT(hFolder, options.folder, MAX_PATH, DIR SUB_DIR); return 0; @@ -85,7 +85,7 @@ static void MenuInit(void) CLISTMENUITEM mi = {0}; mi.cbSize = sizeof(mi); mi.flags = CMIF_TCHAR; - mi.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"backup"); + mi.hIcon = Skin_GetIcon("backup"); mi.ptszPopupName = LPGENT("Database"); mi.ptszName = LPGENT("Backup Profile"); @@ -93,7 +93,7 @@ static void MenuInit(void) mi.position = 500100000; Menu_AddMainMenuItem(&mi); - mi.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"saveas"); + mi.hIcon = Skin_GetIcon("saveas"); mi.ptszName = LPGENT("Save Profile As..."); mi.pszService = MS_AB_SAVEAS; mi.position = 500100001; @@ -115,7 +115,7 @@ static int ModulesLoad(WPARAM wParam, LPARAM lParam) profilePath = Utils_ReplaceVarsT(_T("%miranda_userdata%")); IcoLibInit(); - if(ServiceExists(MS_FOLDERS_REGISTER_PATH)) + if(ServiceExists(MS_FOLDERS_REGISTER_PATH)) FoldersInit(); LoadOptions(); MenuInit(); @@ -145,7 +145,7 @@ void SysInit() { mir_getLP( &pluginInfo ); OleInitialize(0); - + hServices[0] = CreateServiceFunction(MS_AB_BACKUP, ABService); hServices[1] = CreateServiceFunction(MS_AB_BACKUPTRGR, BackupServiceTrgr); hServices[2] = CreateServiceFunction(MS_AB_SAVEAS, DBSaveAs); @@ -180,12 +180,12 @@ extern "C" __declspec(dllexport) int Unload(void) for (i=0; i