From b9e6d6ada8c8cee53991783832a902eecc0e6dce Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 2 Feb 2013 11:05:30 +0000 Subject: fixed menu item fixed openfile dialog filter translation git-svn-id: http://svn.miranda-ng.org/main/trunk@3393 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SplashScreen/src/main.cpp | 2 +- plugins/SplashScreen/src/services.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/SplashScreen') diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp index 4aeeb26813..4a18a103c1 100644 --- a/plugins/SplashScreen/src/main.cpp +++ b/plugins/SplashScreen/src/main.cpp @@ -338,7 +338,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) mi.hIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA); mi.hotKey = 0; mi.position = -0x7FFFFFFF; - mi.pszName = LPGEN("Call Splash Service"); + mi.ptszName = LPGENT("Call Splash Service"); mi.pszService = "Splash/Test"; Menu_AddMainMenuItem(&mi); #endif diff --git a/plugins/SplashScreen/src/services.cpp b/plugins/SplashScreen/src/services.cpp index f38c8eeb8f..44ee1861b3 100644 --- a/plugins/SplashScreen/src/services.cpp +++ b/plugins/SplashScreen/src/services.cpp @@ -50,7 +50,9 @@ INT_PTR TestService(WPARAM wParam,LPARAM lParam) OPENFILENAME ofn={0}; ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; - ofn.lpstrFilter = _T("PNG and BMP files\0*.png;*.bmp\0\0"); + TCHAR tmp[MAX_PATH]; + mir_sntprintf(tmp, SIZEOF(tmp), _T("%s (*.png, *.bmp)%c*.png;*.bmp%c%c"), TranslateT("Graphic files"), 0, 0, 0); + ofn.lpstrFilter = tmp; ofn.hwndOwner=0; ofn.lpstrFile = szTempPath; ofn.nMaxFile = MAX_PATH; -- cgit v1.2.3