From e58823d961a630eb62e60d2ccb443761ba5f1704 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Jun 2012 15:51:34 +0000 Subject: - all MS_CLIST_ADD*ITEM services replaced with Menu_Add*Item stubs. - massive cleanup of the menu-related code git-svn-id: http://svn.miranda-ng.org/main/trunk@410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/main.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'plugins/Db_autobackups') diff --git a/plugins/Db_autobackups/main.c b/plugins/Db_autobackups/main.c index c7183820c3..e90f08b0c8 100644 --- a/plugins/Db_autobackups/main.c +++ b/plugins/Db_autobackups/main.c @@ -86,22 +86,22 @@ static void IcoLibInit(void) static void MenuInit(void) { - CLISTMENUITEM menu = {0}; - menu.cbSize = sizeof(menu); - menu.flags = CMIF_TCHAR; - menu.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"backup"); - menu.ptszPopupName = LPGENT("Database"); - - menu.ptszName = LPGENT("Backup Profile"); - menu.pszService = MS_AB_BACKUP; - menu.position = 500100000; - CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu); - - menu.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"saveas"); - menu.ptszName = LPGENT("Save Profile As..."); - menu.pszService = MS_AB_SAVEAS; - menu.position = 500100001; - CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu); + CLISTMENUITEM mi = {0}; + mi.cbSize = sizeof(mi); + mi.flags = CMIF_TCHAR; + mi.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"backup"); + mi.ptszPopupName = LPGENT("Database"); + + mi.ptszName = LPGENT("Backup Profile"); + mi.pszService = MS_AB_BACKUP; + mi.position = 500100000; + Menu_AddMainMenuItem(&mi); + + mi.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"saveas"); + mi.ptszName = LPGENT("Save Profile As..."); + mi.pszService = MS_AB_SAVEAS; + mi.position = 500100001; + Menu_AddMainMenuItem(&mi); } static void TriggerActionInit(void) -- cgit v1.2.3