diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-08 22:05:11 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-08 22:05:11 +0300 |
commit | 972fc593ad415a3903987f019c2a4d8e2030bc40 (patch) | |
tree | cffb84da2d1a5fe0ffca84716ff6959c5f4aeaee | |
parent | 0ef6717a0232794013145730354f307a34fe60b3 (diff) |
fixes #3852 (ProxySwitch: перевод не помещается)
-rw-r--r-- | plugins/ProxySwitch/res/resource.rc | 67 | ||||
-rw-r--r-- | plugins/ProxySwitch/src/resource.h | 6 |
2 files changed, 52 insertions, 21 deletions
diff --git a/plugins/ProxySwitch/res/resource.rc b/plugins/ProxySwitch/res/resource.rc index 2ac38f6305..e7190d798d 100644 --- a/plugins/ProxySwitch/res/resource.rc +++ b/plugins/ProxySwitch/res/resource.rc @@ -7,8 +7,7 @@ //
// Generated from the TEXTINCLUDE 2 resource.
//
-#include "afxres.h"
-
+#include <winres.h>
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
@@ -16,10 +15,8 @@ // Neutral resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
-#ifdef _WIN32
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
-#pragma code_page(1250)
-#endif //_WIN32
+#pragma code_page(1251)
/////////////////////////////////////////////////////////////////////////////
//
@@ -28,10 +25,13 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
-IDI_LOGO ICON "logo.ico"
-IDI_PROXY ICON "proxy.ico"
-IDI_NOTIF_1 ICON "notif-yes.ico"
-IDI_NOTIF_0 ICON "notif-no.ico"
+IDI_LOGO ICON "logo.ico"
+
+IDI_PROXY ICON "proxy.ico"
+
+IDI_NOTIF_1 ICON "notif-yes.ico"
+
+IDI_NOTIF_0 ICON "notif-no.ico"
/////////////////////////////////////////////////////////////////////////////
@@ -44,15 +44,10 @@ GUIDELINES DESIGNINFO BEGIN
IDD_OPTIONS, DIALOG
BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 295
- TOPMARGIN, 7
- BOTTOMMARGIN, 184
END
IDD_HELP, DIALOG
BEGIN
- BOTTOMMARGIN, 163
END
END
#endif // APSTUDIO_INVOKED
@@ -64,7 +59,7 @@ END //
IDD_OPTIONS DIALOGEX 0, 0, 302, 191
-STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_CHILD
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
@@ -88,11 +83,10 @@ BEGIN CONTROL "Text color",IDC_STATIC,"Static",SS_SIMPLE,215,94,75,8
CONTROL "",IDC_BGCOLOR,"ColourPicker",WS_TABSTOP,168,111,39,11
CONTROL "Background color",IDC_STATIC,"Static",SS_SIMPLE,215,111,75,8
- CONTROL "Use default colors",IDC_CHECK_DEFAULTCOLORS,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,168,129,122,10
+ CONTROL "Use default colors",IDC_CHECK_DEFAULTCOLORS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,168,129,122,10
CONTROL "Show proxy status on change",IDC_CHECK_SHOWPROXYSTATUS,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,168,143,123,10
- CTEXT "Restart of Miranda NG is required.",IDC_RESTARTREQUIRED,164,164,127,8,NOT WS_VISIBLE
+ "Button",BS_AUTOCHECKBOX | BS_TOP | WS_TABSTOP,168,143,123,20
+ CTEXT "Restart of Miranda NG is required.",IDC_RESTARTREQUIRED,164,170,127,8,NOT WS_VISIBLE
END
IDD_HELP DIALOGEX 0, 0, 302, 167
@@ -127,6 +121,41 @@ END /////////////////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "..\\src\\resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include <winres.h>\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+#endif // English (United States) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/ProxySwitch/src/resource.h b/plugins/ProxySwitch/src/resource.h index 5550c2f5a1..bb7e43ff1c 100644 --- a/plugins/ProxySwitch/src/resource.h +++ b/plugins/ProxySwitch/src/resource.h @@ -1,7 +1,8 @@ //{{NO_DEPENDENCIES}} -// Microsoft Developer Studio generated include file. -// Used by proxySwitch.rc +// Microsoft Visual C++ generated include file. +// Used by W:\miranda-ng\plugins\ProxySwitch\res\resource.rc // +#define VS_VERSION_INFO 1 #define IDI_LOGO 101 #define IDI_PROXY 102 #define IDI_NOPROXY 103 @@ -27,6 +28,7 @@ #define IDC_CHECK_SHOWPROXYSTATUS 1031 #define IDC_TEXTCOLOR 2041 #define IDC_BGCOLOR 2042 +#define IDC_STATIC -1 // Next default values for new objects // |