summaryrefslogtreecommitdiff
path: root/plugins/Svc_dbepp/main_window.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-05-22 06:36:30 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-05-22 06:36:30 +0000
commit9ec2ba379f413bc3817a49f374c5faa1ee23c01a (patch)
tree0bbbc982236c8cb91470559e450ef0b4b8d7e44f /plugins/Svc_dbepp/main_window.cpp
parent819bd5be79b840dd8ed9cb1ddfb2a71840234eea (diff)
Svc_dbepp:
+ability to open options from menu *fixed translating menus with per-plugin langpacks git-svn-id: http://svn.miranda-ng.org/main/trunk@125 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_dbepp/main_window.cpp')
-rw-r--r--plugins/Svc_dbepp/main_window.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/Svc_dbepp/main_window.cpp b/plugins/Svc_dbepp/main_window.cpp
index da58799e1c..01916108ac 100644
--- a/plugins/Svc_dbepp/main_window.cpp
+++ b/plugins/Svc_dbepp/main_window.cpp
@@ -127,10 +127,10 @@ LRESULT CALLBACK ModuleTreeSubclassProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM
}
else if ((mtis->type == CONTACT) && hContact)
{
- char msg[1024];
- mir_snprintf(msg, SIZEOF(msg), Translate("Are you sure you want to delete contact \"%s\"?"), module);
if (DBGetContactSettingByte(NULL,"CList", "ConfirmDelete",1))
{
+ char msg[1024];
+ mir_snprintf(msg, SIZEOF(msg), Translate("Are you sure you want to delete contact \"%s\"?"), module);
if (MessageBox(0,msg, Translate("Confirm Contact Delete"), MB_YESNO|MB_ICONEXCLAMATION) == IDNO)
break;
}
@@ -228,11 +228,11 @@ INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
SettingListSubClass=(WNDPROC)SetWindowLongPtr(GetDlgItem(hwnd,IDC_SETTINGS),GWLP_WNDPROC,(LONG)SettingListSubclassProc);
// traslation stuff
TranslateDialogDefault(hwnd);
- CallService(MS_LANGPACK_TRANSLATEMENU,(WPARAM)hMenu,0);
+ TranslateMenu(hMenu);
for (i=0;i<6;i++)
{
- CallService(MS_LANGPACK_TRANSLATEMENU,(WPARAM)GetSubMenu(hMenu,i),0);
+ TranslateMenu(GetSubMenu(hMenu,i));
}
// move the dialog to the users position
@@ -620,6 +620,14 @@ INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
CheckMenuItem(GetSubMenu(GetMenu(hwnd),5),MENU_SORT_ORDER,MF_BYCOMMAND|(Order?MF_CHECKED:MF_UNCHECKED));
refreshTree(1);
break;
+ case MENU_OPEN_OPTIONS:
+ OPENOPTIONSDIALOG odp = {0};
+ odp.cbSize = sizeof(odp);
+ odp.pszGroup = "Services";
+ odp.pszPage = modFullname;
+ odp.pszTab = 0;
+ CallService(MS_OPT_OPENOPTIONS,0,(LPARAM)&odp);
+ break;
}
return TRUE; // case WM_COMMAND
case WM_NOTIFY: