summaryrefslogtreecommitdiff
path: root/include/m_options.h
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/m_options.h
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/m_options.h')
-rw-r--r--include/m_options.h17
1 files changed, 12 insertions, 5 deletions
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