summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-10-12 16:08:57 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-10-12 16:08:57 +0000
commit75815d4ab9a4b54cea03a97277f4d0892f2bdb6b (patch)
treeee282a32bfec8618c8b904e8cfb954f677d4a6a5
parent32d2d34f0e3aacb60851eedac77e4913affbe6d0 (diff)
minor accessibility and translation fixes (fixes #433)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Spamotron/res/spamotron.rc112
-rw-r--r--plugins/wbOSD/res/wbOSD.rc121
-rw-r--r--plugins/wbOSD/src/options.cpp10
-rw-r--r--plugins/wbOSD/src/resource.h2
4 files changed, 108 insertions, 137 deletions
diff --git a/plugins/Spamotron/res/spamotron.rc b/plugins/Spamotron/res/spamotron.rc
index e435ecd4b6..b7a6bbd29b 100644
--- a/plugins/Spamotron/res/spamotron.rc
+++ b/plugins/Spamotron/res/spamotron.rc
@@ -51,38 +51,39 @@ END
//
IDD_SPAMOTRON_BAYES DIALOGEX 0, 0, 309, 230
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_SYSMENU
+STYLE DS_SETFONT | WS_POPUP | WS_SYSMENU | WS_CHILD | WS_VISIBLE
+EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
+ CONTROL "Enabled",IDC_OPT_BAYES_ENABLED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,15,101,10
+ RTEXT "Learned ham messages:",IDC_STATIC_HAMCOUNT_LABEL,122,21,122,8
+ LTEXT "0",IDC_STATIC_HAM_COUNT,249,21,44,8
+ RTEXT "Learned spam messages:",IDC_STATIC_SPAMCOUNT_LABEL,122,11,122,8
+ LTEXT "0",IDC_STATIC_SPAM_COUNT,249,11,44,8
+ GROUPBOX "Filtering options",IDC_STATIC,8,32,293,63
CONTROL "Do not send challenge request if message score above",IDC_OPT_BAYES_BLOCK_MSG,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,45,185,10
- CONTROL "Auto-learn messages from approved contacts as ham",IDC_OPT_BAYES_AUTOLEARN_APPROVED,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,108,277,10
- GROUPBOX "Filtering options",IDC_STATIC,8,32,293,63
- GROUPBOX "Learning options",IDC_STATIC,8,95,293,127
- CONTROL "Auto-learn outgoing messages as ham",IDC_OPT_BAYES_AUTOLEARN_OUTGOING,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,136,277,10
- EDITTEXT IDC_OPT_BAYES_LEARNBOX,16,165,222,49,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN
- PUSHBUTTON "Spam",IDC_OPT_BAYES_SPAM,244,165,49,14,WS_GROUP
- PUSHBUTTON "Ham",IDC_OPT_BAYES_HAM,244,182,49,14,WS_GROUP
- LTEXT "Learn message:",IDC_STATIC,16,154,222,8
EDITTEXT IDC_OPT_BAYES_SPAM_SCORE,204,44,22,12,ES_CENTER | ES_AUTOHSCROLL
CONTROL "Auto approve contact if message score below",IDC_OPT_BAYES_AUTO_APPROVE,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,59,160,10
EDITTEXT IDC_OPT_BAYES_HAM_SCORE,176,58,22,12,ES_CENTER | ES_AUTOHSCROLL
- LTEXT "Do not enable any of these options until Spam-o-tron have learned at least 20 of ham and 50 of spam messages.",IDC_STATIC,16,72,277,18,WS_DISABLED
- RTEXT "Learned ham messages:",IDC_STATIC_HAMCOUNT_LABEL,122,21,122,8
- RTEXT "Learned spam messages:",IDC_STATIC_SPAMCOUNT_LABEL,122,11,122,8
- LTEXT "0",IDC_STATIC_HAM_COUNT,249,21,44,8
- LTEXT "0",IDC_STATIC_SPAM_COUNT,249,11,44,8
- PUSHBUTTON "Analyze",IDC_CHECK_MSG,244,200,49,14
+ CONTROL "and learn as ham",IDC_OPT_BAYES_AUTOLEARN_AUTOAPPROVED,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,203,59,90,10
+ LTEXT "Do not enable any of these options until Spam-o-tron has learned at least 20 of ham and 50 of spam messages.",IDC_STATIC,16,72,277,18,WS_DISABLED
+ GROUPBOX "Learning options",IDC_STATIC,8,95,293,127
+ CONTROL "Auto-learn messages from approved contacts as ham",IDC_OPT_BAYES_AUTOLEARN_APPROVED,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,108,277,10
CONTROL "Auto-learn messages from contacts if not approved in",IDC_OPT_BAYES_AUTOLEARN_NOT_APPROVED,
- "Button",BS_AUTOCHECKBOX | BS_TOP | WS_TABSTOP,16,122,183,10
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,122,183,10
EDITTEXT IDC_OPT_BAYES_WAIT_APPROVE,201,120,22,12,ES_CENTER | ES_AUTOHSCROLL
LTEXT "days as spam",IDC_STATIC_DAYSASSPAM,226,122,67,8
- CONTROL "Enabled",IDC_OPT_BAYES_ENABLED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,15,101,10
- CONTROL "and learn as ham",IDC_OPT_BAYES_AUTOLEARN_AUTOAPPROVED,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,203,59,90,10
+ CONTROL "Auto-learn outgoing messages as ham",IDC_OPT_BAYES_AUTOLEARN_OUTGOING,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,136,277,10
+ LTEXT "Learn message:",IDC_STATIC,16,154,222,8
+ EDITTEXT IDC_OPT_BAYES_LEARNBOX,16,165,222,49,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN
+ PUSHBUTTON "Spam",IDC_OPT_BAYES_SPAM,244,165,49,14,WS_GROUP
+ PUSHBUTTON "Ham",IDC_OPT_BAYES_HAM,244,182,49,14,WS_GROUP
+ PUSHBUTTON "Analyze",IDC_CHECK_MSG,244,200,49,14,WS_GROUP
END
@@ -137,88 +138,91 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
IDD_SPAMOTRON_MAIN DIALOGEX 0, 0, 309, 230
-STYLE DS_SETFONT | WS_POPUP | WS_SYSMENU
+STYLE DS_SETFONT | WS_POPUP | WS_SYSMENU | WS_CHILD | WS_VISIBLE
+EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "Microsoft Sans Serif", 400, 0, 0xCC
BEGIN
- CONTROL "",IDC_OPT_PROTOCOLS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,16,33,98,89
- LTEXT "Enabled accounts:",IDC_STATIC,16,21,98,8
- CONTROL "Do not reply to messages with words in this list:",IDC_OPT_DONT_REPLY_MSG,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,175,277,10
- CONTROL "Do not reply to the same message more than",IDC_OPT_DONT_REPLY_SAME_MSG,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,161,152,10
- GROUPBOX "Flood protection",IDC_STATIC,8,134,293,88
- LTEXT "Do not send more than",IDC_STATIC,16,148,74,8
- EDITTEXT IDC_OPT_MAX_MSG_CONTACT,91,146,22,12,ES_CENTER | ES_AUTOHSCROLL | ES_NUMBER
- LTEXT "messages to one contact per day",IDC_STATIC,118,148,175,8
- EDITTEXT IDC_OPT_DONT_REPLY_MSG_WORDLIST,16,189,277,24,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN
- EDITTEXT IDC_OPT_MAX_SAME_MSG,170,160,22,12,ES_CENTER | ES_AUTOHSCROLL | ES_NUMBER
- LTEXT "times a day",IDC_STATIC,196,162,97,8
GROUPBOX "Settings",IDC_STATIC,8,8,293,121
+ LTEXT "Enabled accounts:",IDC_STATIC,16,21,98,8
+ CONTROL "",IDC_OPT_PROTOCOLS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,16,33,98,89
+ LTEXT "Auto approve on:",IDC_STATIC,122,17,171,8
CONTROL "Outgoing message",IDC_OPT_OUT_MSG_APPROVE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,122,28,171,10
CONTROL "Incoming message with any word from list:",IDC_OPT_IN_MSG_APPROVE,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,122,42,171,10
EDITTEXT IDC_OPT_IN_MSG_APPROVE_WORDLIST,122,56,171,24,ES_AUTOHSCROLL
- LTEXT "Auto approve on:",IDC_STATIC,122,17,171,8
CONTROL "Hide contact until verified",IDC_OPT_HIDE_UNTIL_VERIFIED,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,122,86,171,10
CONTROL "Add permanently to list on verified",IDC_OPT_ADD_PERMANENTLY,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,122,100,171,10
CONTROL "Log actions to system history",IDC_OPT_LOG_ACTIONS,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,122,114,171,10
+ GROUPBOX "Flood protection",IDC_STATIC,8,134,293,88
+ LTEXT "Do not send more than",IDC_STATIC,16,148,74,8
+ EDITTEXT IDC_OPT_MAX_MSG_CONTACT,91,146,22,12,ES_CENTER | ES_AUTOHSCROLL | ES_NUMBER
+ LTEXT "messages to one contact per day",IDC_STATIC,118,148,175,8
+ CONTROL "Do not reply to the same message more than",IDC_OPT_DONT_REPLY_SAME_MSG,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,161,152,10
+ EDITTEXT IDC_OPT_MAX_SAME_MSG,170,160,22,12,ES_CENTER | ES_AUTOHSCROLL | ES_NUMBER
+ LTEXT "times a day",IDC_STATIC,196,162,97,8
+ CONTROL "Do not reply to messages with words in this list:",IDC_OPT_DONT_REPLY_MSG,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,175,277,10
+ EDITTEXT IDC_OPT_DONT_REPLY_MSG_WORDLIST,16,189,277,24,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN
END
IDD_SPAMOTRON_Q DIALOGEX 0, 0, 309, 230
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_SYSMENU
+STYLE DS_SETFONT | WS_POPUP | WS_SYSMENU | WS_CHILD | WS_VISIBLE
+EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
LTEXT "Mode:",IDC_STATIC,8,10,25,8
COMBOBOX IDC_OPT_MODE,35,8,85,50,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+ CONTROL "Case-sensitive",IDC_OPT_CCRESPONSE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,126,10,175,10
+ LTEXT "will be saved in %mathexpr%",IDC_STATIC_MODEMSG,126,10,175,10
+ CONTROL "Send challenge on incoming message:",IDC_OPT_REPLY_ON_MSG,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,28,293,10
EDITTEXT IDC_OPT_CHALLENGE,8,40,293,28,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL | WS_GROUP
LTEXT "Responses: (saved in %response%, %response-n% variables)",IDC_STATIC_RESPONSE,8,72,293,8
EDITTEXT IDC_OPT_RESPONSE,8,82,293,28,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN | WS_VSCROLL
- EDITTEXT IDC_OPT_SUCCESS_RESPONSE,8,127,293,20,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
- EDITTEXT IDC_OPT_AUTH_CHALLENGE,8,165,293,28,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
- LTEXT "will be saved in %mathexpr%",IDC_STATIC_MODEMSG,126,10,175,10
EDITTEXT IDC_OPT_MATH_RESPONSE,8,82,293,28,ES_AUTOHSCROLL | NOT WS_VISIBLE | WS_DISABLED
- PUSHBUTTON "Reset to defaults",IDC_DEFAULTS,214,208,87,14
CONTROL "Reply on success:",IDC_OPT_REPLY_ON_SUCCESS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,115,293,10
+ EDITTEXT IDC_OPT_SUCCESS_RESPONSE,8,127,293,20,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
CONTROL "Send challenge on authorization request:",IDC_OPT_REPLY_ON_AUTH,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,153,293,10
+ EDITTEXT IDC_OPT_AUTH_CHALLENGE,8,165,293,28,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
CONTROL "Keep blocked messages in contact history",IDC_OPT_KEEP_BLOCKED_MSG,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,198,201,10
- CONTROL "Case-sensitive",IDC_OPT_CCRESPONSE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,126,10,175,10
- CONTROL "Send challenge on incoming message:",IDC_OPT_REPLY_ON_MSG,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,28,293,10
CONTROL "and mark them unread after approval",IDC_OPT_MARK_MSG_UNREAD_ON_APPROVAL,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,17,210,191,11
+ PUSHBUTTON "Reset to defaults",IDC_DEFAULTS,214,208,87,14
END
IDD_SPAMOTRON_POPUPS DIALOGEX 0, 0, 309, 230
-STYLE DS_SETFONT | WS_POPUP | WS_SYSMENU
+STYLE DS_SETFONT | WS_POPUP | WS_SYSMENU | WS_CHILD | WS_VISIBLE
+EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "Microsoft Sans Serif", 400, 0, 0xCC
BEGIN
CONTROL "Enable popup notifications",IDC_OPT_POPUPS_ENABLED,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,19,277,10
- CONTROL "Contact blocked",IDC_OPT_POPUPS_NOTIFY_BLOCKED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,67,105,10
- CONTROL "Contact approved",IDC_OPT_POPUPS_NOTIFY_APPROVED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,83,105,10
GROUPBOX "Appearance",IDC_STATIC,8,41,293,181
+ CTEXT "Foreground",IDC_STATIC,126,54,50,8
+ CTEXT "Background",IDC_STATIC,184,54,50,8
+ CTEXT "Timeout",IDC_STATIC,242,54,40,8
+ CONTROL "Contact blocked",IDC_OPT_POPUPS_NOTIFY_BLOCKED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,67,105,10
CONTROL "",IDC_OPT_POPUPS_BLOCKED_FOREGROUND,"ColourPicker",WS_TABSTOP,126,67,50,10
CONTROL "",IDC_OPT_POPUPS_BLOCKED_BACKGROUND,"ColourPicker",WS_TABSTOP,184,67,50,10
+ EDITTEXT IDC_OPT_POPUPS_BLOCKED_TIMEOUT,248,66,28,12,ES_CENTER | ES_AUTOHSCROLL
+ CONTROL "Contact approved",IDC_OPT_POPUPS_NOTIFY_APPROVED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,83,105,10
CONTROL "",IDC_OPT_POPUPS_APPROVED_FOREGROUND,"ColourPicker",WS_TABSTOP,126,83,50,10
CONTROL "",IDC_OPT_POPUPS_APPROVED_BACKGROUND,"ColourPicker",WS_TABSTOP,184,83,50,10
+ EDITTEXT IDC_OPT_POPUPS_APPROVED_TIMEOUT,248,82,28,12,ES_CENTER | ES_AUTOHSCROLL
+ CONTROL "Challenge sent",IDC_OPT_POPUPS_NOTIFY_CHALLENGE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,99,105,10
CONTROL "",IDC_OPT_POPUPS_CHALLENGE_FOREGROUND,"ColourPicker",WS_TABSTOP,126,99,50,10
CONTROL "",IDC_OPT_POPUPS_CHALLENGE_BACKGROUND,"ColourPicker",WS_TABSTOP,184,99,50,10
- CTEXT "Foreground",IDC_STATIC,126,54,50,8
- CTEXT "Background",IDC_STATIC,184,54,50,8
- CTEXT "Timeout",IDC_STATIC,242,54,40,8
- EDITTEXT IDC_OPT_POPUPS_BLOCKED_TIMEOUT,248,66,28,12,ES_CENTER | ES_AUTOHSCROLL
- EDITTEXT IDC_OPT_POPUPS_APPROVED_TIMEOUT,248,82,28,12,ES_CENTER | ES_AUTOHSCROLL
EDITTEXT IDC_OPT_POPUPS_CHALLENGE_TIMEOUT,248,98,28,12,ES_CENTER | ES_AUTOHSCROLL
CONTROL "Default colors",IDC_OPT_POPUPS_DEFAULT_COLORS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,149,168,10
+ CONTROL "Windows colors",IDC_OPT_POPUPS_WINDOWS_COLORS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,163,168,10
CONTROL "Default timeout",IDC_OPT_POPUPS_DEFAULT_TIMEOUT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,210,149,83,10
PUSHBUTTON "Preview",IDC_OPT_POPUPS_PREVIEW,227,198,66,14
- CONTROL "Windows colors",IDC_OPT_POPUPS_WINDOWS_COLORS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,163,168,10
- CONTROL "Challenge sent",IDC_OPT_POPUPS_NOTIFY_CHALLENGE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,99,105,10
END
diff --git a/plugins/wbOSD/res/wbOSD.rc b/plugins/wbOSD/res/wbOSD.rc
index b199db9e38..54f243169e 100644
--- a/plugins/wbOSD/res/wbOSD.rc
+++ b/plugins/wbOSD/res/wbOSD.rc
@@ -13,13 +13,11 @@
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
+// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
-#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
@@ -27,91 +25,60 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
IDD_DIALOG1 DIALOGEX 0, 0, 316, 250
-STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION
-CAPTION "Dialog"
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
+EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Radio1",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON |
- WS_GROUP,21,22,8,8
- CONTROL "Radio1",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,39,22,8,
- 8
- CONTROL "Radio1",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON,59,22,8,
- 8
- CONTROL "Radio1",IDC_RADIO4,"Button",BS_AUTORADIOBUTTON,21,33,8,
- 8
- CONTROL "Radio1",IDC_RADIO5,"Button",BS_AUTORADIOBUTTON,39,33,8,
- 8
- CONTROL "Radio1",IDC_RADIO6,"Button",BS_AUTORADIOBUTTON,59,33,8,
- 8
- CONTROL "Radio1",IDC_RADIO7,"Button",BS_AUTORADIOBUTTON,21,45,8,
- 8
- CONTROL "Radio1",IDC_RADIO8,"Button",BS_AUTORADIOBUTTON,39,45,8,
- 8
- CONTROL "Radio1",IDC_RADIO9,"Button",BS_AUTORADIOBUTTON,59,45,8,
- 8
- PUSHBUTTON "Select font",IDC_BUTTON1,80,17,68,14
- PUSHBUTTON "Text color",IDC_BUTTON2,175,91,68,14
- PUSHBUTTON "Background color",IDC_BUTTON4,11,182,67,14
- CONTROL "Transparent",IDC_CHECK3,"Button",BS_AUTOCHECKBOX |
- WS_TABSTOP,11,199,72,10
- CONTROL "Radio1",IDC_RADIO10,"Button",BS_AUTORADIOBUTTON |
- WS_GROUP,21,99,8,8
- CONTROL "Radio1",IDC_RADIO11,"Button",BS_AUTORADIOBUTTON,39,99,8,
- 8
- CONTROL "Radio1",IDC_RADIO12,"Button",BS_AUTORADIOBUTTON,59,99,8,
- 8
- CONTROL "Radio1",IDC_RADIO13,"Button",BS_AUTORADIOBUTTON,21,110,
- 8,8
- CONTROL "Radio1",IDC_RADIO14,"Button",BS_AUTORADIOBUTTON,39,110,
- 8,8
- CONTROL "Radio1",IDC_RADIO15,"Button",BS_AUTORADIOBUTTON,59,110,
- 8,8
- CONTROL "Radio1",IDC_RADIO16,"Button",BS_AUTORADIOBUTTON,21,121,
- 8,8
- CONTROL "Radio1",IDC_RADIO17,"Button",BS_AUTORADIOBUTTON,39,121,
- 8,8
- CONTROL "Radio1",IDC_RADIO18,"Button",BS_AUTORADIOBUTTON,59,121,
- 8,8
- PUSHBUTTON "Shadow color",IDC_BUTTON3,80,92,67,14
- CONTROL "Alternative shadow",IDC_CHECK1,"Button",BS_AUTOCHECKBOX |
- WS_TABSTOP,13,135,133,10
- EDITTEXT IDC_EDIT1,79,148,27,14,ES_AUTOHSCROLL | ES_NUMBER
- GROUPBOX "Shadow align",IDC_STATIC,13,89,62,43
GROUPBOX "General",IDC_STATIC,6,0,150,66
- GROUPBOX "Shadow",IDC_STATIC,5,70,151,99
GROUPBOX "Align",IDC_STATIC,13,13,61,43
- LTEXT "Shadow distance:",IDC_STATIC,10,151,64,8,
- SS_PATHELLIPSIS,WS_EX_RIGHT
+ CONTROL "Radio1",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON | WS_GROUP,21,22,8,8
+ CONTROL "Radio1",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,39,22,8,8
+ CONTROL "Radio1",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,59,22,8,8
+ CONTROL "Radio1",IDC_RADIO4,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,21,33,8,8
+ CONTROL "Radio1",IDC_RADIO5,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,39,33,8,8
+ CONTROL "Radio1",IDC_RADIO6,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,59,33,8,8
+ CONTROL "Radio1",IDC_RADIO7,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,21,45,8,8
+ CONTROL "Radio1",IDC_RADIO8,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,39,45,8,8
+ CONTROL "Radio1",IDC_RADIO9,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,59,45,8,8
+ PUSHBUTTON "Select font",IDC_BUTTON1,80,25,68,14
+ GROUPBOX "Shadow",IDC_STATIC,5,70,151,99
+ CONTROL "Show drop shadow",IDC_CHECK4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,80,85,10
+ GROUPBOX "Shadow align",IDC_STATIC,13,89,62,43
+ CONTROL "Radio1",IDC_RADIO10,"Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,21,99,8,8
+ CONTROL "Radio1",IDC_RADIO11,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,39,99,8,8
+ CONTROL "Radio1",IDC_RADIO12,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,59,99,8,8
+ CONTROL "Radio1",IDC_RADIO13,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,21,110,8,8
+ CONTROL "Radio1",IDC_RADIO14,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,39,110,8,8
+ CONTROL "Radio1",IDC_RADIO15,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,59,110,8,8
+ CONTROL "Radio1",IDC_RADIO16,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,21,121,8,8
+ CONTROL "Radio1",IDC_RADIO17,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,39,121,8,8
+ CONTROL "Radio1",IDC_RADIO18,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,59,121,8,8
+ PUSHBUTTON "Shadow color",IDC_BUTTON3,80,102,67,14
+ CONTROL "Alternative shadow",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,135,133,10
+ LTEXT "Shadow distance:",IDC_STATIC,10,151,64,8,SS_PATHELLIPSIS,WS_EX_RIGHT
+ EDITTEXT IDC_EDIT1,79,148,27,14,ES_AUTOHSCROLL | ES_NUMBER
GROUPBOX "Other",IDC_STATIC,5,171,152,75
+ PUSHBUTTON "Background color",IDC_BUTTON4,11,182,67,14
+ CONTROL "Transparent",IDC_CHECK3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,11,199,72,10
LTEXT "Alpha:",IDC_STATIC,92,183,60,8,SS_PATHELLIPSIS
- GROUPBOX "Announce",IDC_STATIC,162,0,150,246
+ CONTROL "",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,87,193,45,15
+ LTEXT "Static",IDC_ALPHATXT,136,195,17,8
LTEXT "Timeout (ms):",IDC_STATIC,86,213,67,8,SS_PATHELLIPSIS
EDITTEXT IDC_EDIT5,91,224,27,14,ES_AUTOHSCROLL | ES_NUMBER
- CONTROL "",IDC_TREE1,"SysTreeView32",TVS_DISABLEDRAGDROP |
- TVS_NOTOOLTIPS | WS_BORDER | WS_TABSTOP | 0x4000,170,22,
- 138,55
- CONTROL "Show",IDC_CHECK4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
- 13,80,85,10
- CONTROL "Show events",IDC_CHECK5,"Button",BS_AUTOCHECKBOX |
- WS_TABSTOP,167,110,139,10
- CONTROL "Status changes",IDC_CHECK6,"Button",BS_AUTOCHECKBOX |
- WS_TABSTOP,167,10,136,10
PUSHBUTTON "Show testing OSD",IDC_BUTTON5,11,224,67,14
- CONTROL "Show my status changes",IDC_CHECK7,"Button",
- BS_AUTOCHECKBOX | WS_TABSTOP,175,80,133,10
- CONTROL "Show message window after click",IDC_CHECK2,"Button",
- BS_AUTOCHECKBOX | WS_TABSTOP,167,156,138,10
- CONTROL "",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH |
- TBS_NOTICKS | WS_TABSTOP,87,193,45,15
- LTEXT "Static",IDC_ALPHATXT,136,195,17,8
+ GROUPBOX "Announce",IDC_STATIC,162,0,150,246
+ CONTROL "Status changes",IDC_CHECK6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,167,10,136,10
+ CONTROL "",IDC_TREE1,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_HSCROLL | WS_TABSTOP,170,22,138,55
+ CONTROL "Show my status changes",IDC_CHECK7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,175,80,133,10
+ PUSHBUTTON "Text color",IDC_BUTTON2,175,91,68,14
+ CONTROL "Show events",IDC_CHECK5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,167,110,139,10
PUSHBUTTON "Text color",IDC_BUTTON6,175,121,68,14
- EDITTEXT IDC_EDIT2,214,137,81,14,ES_AUTOHSCROLL
LTEXT "Format:",IDC_STATIC,177,140,35,8
+ EDITTEXT IDC_EDIT2,214,137,81,14,ES_AUTOHSCROLL
PUSHBUTTON "?",IDC_BUTTON7,298,137,10,14
- CONTROL "",IDC_TREE2,"SysTreeView32",TVS_DISABLEDRAGDROP |
- TVS_NOTOOLTIPS | WS_BORDER | WS_TABSTOP | 0x4000,170,182,
- 138,59
+ CONTROL "Show message window after click",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,167,156,138,10
LTEXT "Show when my status is:",IDC_STATIC,168,171,139,8
+ CONTROL "",IDC_TREE2,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_HSCROLL | WS_TABSTOP,170,182,138,59
END
@@ -121,7 +88,7 @@ END
//
#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO
+GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG1, DIALOG
BEGIN
@@ -159,7 +126,7 @@ END
#endif // APSTUDIO_INVOKED
-#endif // English (U.S.) resources
+#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/wbOSD/src/options.cpp b/plugins/wbOSD/src/options.cpp
index 4a9769c0e9..01dc173b0d 100644
--- a/plugins/wbOSD/src/options.cpp
+++ b/plugins/wbOSD/src/options.cpp
@@ -17,7 +17,7 @@ void FillCheckBoxTree(HWND hwndTree,DWORD style)
{
logmsg("FillCheckBoxTree");
- TVINSERTSTRUCT tvis;
+ TVINSERTSTRUCT tvis = {0};
tvis.hParent = NULL;
tvis.hInsertAfter = TVI_LAST;
tvis.item.mask = TVIF_PARAM|TVIF_TEXT|TVIF_STATE;
@@ -36,7 +36,7 @@ DWORD MakeCheckBoxTreeFlags(HWND hwndTree)
logmsg("MakeCheckBoxTreeFlags");
- TVITEM tvi;
+ TVITEM tvi = {0};
tvi.mask=TVIF_HANDLE|TVIF_PARAM|TVIF_STATE;
tvi.hItem=TreeView_GetRoot(hwndTree);
while(tvi.hItem) {
@@ -51,7 +51,7 @@ int selectColor(HWND hwnd, COLORREF *clr)
{
logmsg("SelectColor");
- CHOOSECOLOR cc;
+ CHOOSECOLOR cc = {0};
cc.lStructSize = sizeof(cc);
cc.hwndOwner = hwnd;
cc.hInstance = (HWND)hI;
@@ -289,10 +289,10 @@ INT_PTR CALLBACK OptDlgProc(HWND hDlg,UINT msg,WPARAM wparam,LPARAM lparam)
ps=(plgsettings*)GetWindowLongPtr(hDlg, GWLP_USERDATA);
switch (LOWORD(wparam)) {
case IDC_BUTTON7:
- MessageBox(hDlg, _T("Variables:\n %n : Nick\n %m : Message\n %l : New line"), _T("Help"), MB_ICONINFORMATION|MB_OK);
+ MessageBox(hDlg, TranslateT("Variables:\n %n : Nick\n %m : Message\n %l : New line"), TranslateT("Help"), MB_ICONINFORMATION|MB_OK);
return 0;
case IDC_BUTTON5:
- SendMessage(hwnd, WM_USER+1, (WPARAM)_T("miranda is gr8 and this is a long message ;-)"), 0);
+ SendMessage(hwnd, WM_USER+1, (WPARAM)TranslateT("Miranda NG is great and this is a long message."), 0);
break;
case IDC_BUTTON1:
selectFont(hDlg, &(ps->lf));
diff --git a/plugins/wbOSD/src/resource.h b/plugins/wbOSD/src/resource.h
index 64e57a5dfa..e82a87a47b 100644
--- a/plugins/wbOSD/src/resource.h
+++ b/plugins/wbOSD/src/resource.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
-// Used by wbOSD.rc
+// Used by ..\res\wbOSD.rc
//
#define IDD_DIALOG1 101
#define IDC_BUTTON1 1001