From d716f207aa8b71f35e3872fd6b34651703c2beb7 Mon Sep 17 00:00:00 2001 From: George Hazan <george.hazan@gmail.com> Date: Sat, 4 Aug 2012 18:57:44 +0000 Subject: links to options don't work with langpacks git-svn-id: http://svn.miranda-ng.org/main/trunk@1355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_clist.h | 10 +++++----- include/m_options.h | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/m_clist.h b/include/m_clist.h index 0536dedc54..83bc98ab90 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -181,11 +181,11 @@ __inline static HGENMENU Menu_AddProtoMenuItem(CLISTMENUITEM *mi) //hMenuItem will have been returned by clist/add*menuItem //clmi.flags should contain cmim_ constants below specifying which fields to //update. Fields without a mask flag cannot be changed and will be ignored -#define CMIM_NAME 0x80000000 -#define CMIM_FLAGS 0x40000000 -#define CMIM_ICON 0x20000000 -#define CMIM_HOTKEY 0x10000000 -#define CMIM_ALL 0xF0000000 +#define CMIM_NAME 0x80000000 +#define CMIM_FLAGS 0x40000000 +#define CMIM_ICON 0x20000000 +#define CMIM_HOTKEY 0x10000000 +#define CMIM_ALL 0xF0000000 #define MS_CLIST_MODIFYMENUITEM "CList/ModifyMenuItem" //the context menu for a contact is about to be built v0.1.0.1+ diff --git a/include/m_options.h b/include/m_options.h index bc3469998a..2011127e3c 100644 --- a/include/m_options.h +++ b/include/m_options.h @@ -118,18 +118,25 @@ __inline static INT_PTR Options_AddPage(WPARAM wParam, OPTIONSDIALOGPAGE* odp) //activated, the page won't be changed. This may change in the future. typedef struct { int cbSize; - const char *pszGroup; //set to NULL if it's a root item - const char *pszPage; //set to NULL to just open the options at no + const char *pszGroup; //set to NULL if it's a root item + const char *pszPage; //set to NULL to just open the options at no //specific page - const char *pszTab; //set to NULL to just open the options at no + const char *pszTab; //set to NULL to just open the options at no //specific tab } OPENOPTIONSDIALOG; -#define MS_OPT_OPENOPTIONS "Opt/OpenOptions" +__inline static INT_PTR Options_Open(OPENOPTIONSDIALOG *ood) +{ + return CallService("Opt/OpenOptions", hLangpack, (LPARAM)ood); +} //Opens the options dialog, with only specified page v0.8.0.x+ -#define MS_OPT_OPENOPTIONSPAGE "Opt/OpenOptionsPage" + +__inline static HWND Options_OpenPage(OPENOPTIONSDIALOG *ood) +{ + return (HWND)CallService("Opt/OpenOptionsPage", hLangpack, (LPARAM)ood); +} #define SETTING_SHOWEXPERT_DEFAULT 1 -- cgit v1.2.3