summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-04 18:57:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-04 18:57:44 +0000
commitd716f207aa8b71f35e3872fd6b34651703c2beb7 (patch)
tree1ddff4e84ac5bc8e73e3796f1d9b07d7b6599388 /include
parentc3fbe61899fda92575cdaec8e29301ea2707d8e6 (diff)
links to options don't work with langpacks
git-svn-id: http://svn.miranda-ng.org/main/trunk@1355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_clist.h10
-rw-r--r--include/m_options.h17
2 files changed, 17 insertions, 10 deletions
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