diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-12 16:08:57 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-12 16:08:57 +0000 |
commit | 75815d4ab9a4b54cea03a97277f4d0892f2bdb6b (patch) | |
tree | ee282a32bfec8618c8b904e8cfb954f677d4a6a5 /plugins/wbOSD/src | |
parent | 32d2d34f0e3aacb60851eedac77e4913affbe6d0 (diff) |
minor accessibility and translation fixes (fixes #433)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/wbOSD/src')
-rw-r--r-- | plugins/wbOSD/src/options.cpp | 10 | ||||
-rw-r--r-- | plugins/wbOSD/src/resource.h | 2 |
2 files changed, 6 insertions, 6 deletions
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
|