https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ba53f72a87f5abd3c1abf…
commit ba53f72a87f5abd3c1abfaf59ebaeb31d2ad7e49
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Aug 9 23:59:34 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Aug 9 23:59:34 2023 +0900
[MSPAINT] Send mail with image (retry) (#5404)
- Add OpenMailer function.
- Add IDS_CANTSENDMAIL.
- Send a mail by using mapi32!MAPISendMail/W.
- Extend SaveDIBToFile function by adding a
parameter.
CORE-19094
---
base/applications/mspaint/common.h | 1 +
base/applications/mspaint/dib.cpp | 4 +-
base/applications/mspaint/dib.h | 2 +-
base/applications/mspaint/lang/bg-BG.rc | 1 +
base/applications/mspaint/lang/cs-CZ.rc | 1 +
base/applications/mspaint/lang/de-DE.rc | 1 +
base/applications/mspaint/lang/en-GB.rc | 1 +
base/applications/mspaint/lang/en-US.rc | 1 +
base/applications/mspaint/lang/es-ES.rc | 1 +
base/applications/mspaint/lang/et-EE.rc | 1 +
base/applications/mspaint/lang/eu-ES.rc | 1 +
base/applications/mspaint/lang/fr-FR.rc | 1 +
base/applications/mspaint/lang/he-IL.rc | 1 +
base/applications/mspaint/lang/hu-HU.rc | 1 +
base/applications/mspaint/lang/id-ID.rc | 1 +
base/applications/mspaint/lang/it-IT.rc | 1 +
base/applications/mspaint/lang/ja-JP.rc | 1 +
base/applications/mspaint/lang/nl-NL.rc | 1 +
base/applications/mspaint/lang/no-NO.rc | 1 +
base/applications/mspaint/lang/pl-PL.rc | 1 +
base/applications/mspaint/lang/pt-BR.rc | 1 +
base/applications/mspaint/lang/pt-PT.rc | 1 +
base/applications/mspaint/lang/ro-RO.rc | 1 +
base/applications/mspaint/lang/ru-RU.rc | 1 +
base/applications/mspaint/lang/sk-SK.rc | 1 +
base/applications/mspaint/lang/sq-AL.rc | 1 +
base/applications/mspaint/lang/sv-SE.rc | 1 +
base/applications/mspaint/lang/tr-TR.rc | 1 +
base/applications/mspaint/lang/uk-UA.rc | 1 +
base/applications/mspaint/lang/vi-VN.rc | 1 +
base/applications/mspaint/lang/zh-CN.rc | 1 +
base/applications/mspaint/lang/zh-HK.rc | 1 +
base/applications/mspaint/lang/zh-TW.rc | 1 +
base/applications/mspaint/main.cpp | 117 ++++++++++++++++++++++++++++++++
base/applications/mspaint/resource.h | 1 +
base/applications/mspaint/winproc.cpp | 7 ++
36 files changed, 159 insertions(+), 3 deletions(-)
diff --git a/base/applications/mspaint/common.h b/base/applications/mspaint/common.h
index a3f3950ff7e..ee103d74911 100644
--- a/base/applications/mspaint/common.h
+++ b/base/applications/mspaint/common.h
@@ -47,3 +47,4 @@ BOOL zoomTo(int newZoom, int mouseX, int mouseY);
BOOL nearlyEqualPoints(INT x0, INT y0, INT x1, INT y1);
void updateStartAndLast(LONG x, LONG y);
void updateLast(LONG x, LONG y);
+BOOL OpenMailer(HWND hWnd, LPCWSTR pszPathName);
diff --git a/base/applications/mspaint/dib.cpp b/base/applications/mspaint/dib.cpp
index a5b3f0b7896..c12a2f013a8 100644
--- a/base/applications/mspaint/dib.cpp
+++ b/base/applications/mspaint/dib.cpp
@@ -142,11 +142,11 @@ GetDIBHeight(HBITMAP hBitmap)
return bm.bmHeight;
}
-BOOL SaveDIBToFile(HBITMAP hBitmap, LPCWSTR FileName, BOOL fIsMainFile)
+BOOL SaveDIBToFile(HBITMAP hBitmap, LPCWSTR FileName, BOOL fIsMainFile, REFGUID guidFileType)
{
CImageDx img;
img.Attach(hBitmap);
- HRESULT hr = img.SaveDx(FileName, GUID_NULL, g_xDpi, g_yDpi);
+ HRESULT hr = img.SaveDx(FileName, guidFileType, g_xDpi, g_yDpi);
img.Detach();
if (FAILED(hr))
diff --git a/base/applications/mspaint/dib.h b/base/applications/mspaint/dib.h
index 9c1e5d4f09c..cefdb6e42b5 100644
--- a/base/applications/mspaint/dib.h
+++ b/base/applications/mspaint/dib.h
@@ -22,7 +22,7 @@ static inline HBITMAP CopyDIBImage(HBITMAP hbm, INT cx = 0, INT cy = 0)
int GetDIBWidth(HBITMAP hbm);
int GetDIBHeight(HBITMAP hbm);
-BOOL SaveDIBToFile(HBITMAP hBitmap, LPCWSTR FileName, BOOL fIsMainFile);
+BOOL SaveDIBToFile(HBITMAP hBitmap, LPCWSTR FileName, BOOL fIsMainFile, REFGUID guidFileType = GUID_NULL);
HBITMAP DoLoadImageFile(HWND hwnd, LPCWSTR name, BOOL fIsMainFile);
diff --git a/base/applications/mspaint/lang/bg-BG.rc b/base/applications/mspaint/lang/bg-BG.rc
index f3b6382d5b7..66bf74763c3 100644
--- a/base/applications/mspaint/lang/bg-BG.rc
+++ b/base/applications/mspaint/lang/bg-BG.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/cs-CZ.rc b/base/applications/mspaint/lang/cs-CZ.rc
index 5e5fcbb6caa..57608b40f96 100644
--- a/base/applications/mspaint/lang/cs-CZ.rc
+++ b/base/applications/mspaint/lang/cs-CZ.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/de-DE.rc b/base/applications/mspaint/lang/de-DE.rc
index 4cfe2e6c328..fb947b1eeb2 100644
--- a/base/applications/mspaint/lang/de-DE.rc
+++ b/base/applications/mspaint/lang/de-DE.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/en-GB.rc b/base/applications/mspaint/lang/en-GB.rc
index ce5b06fd04f..9dc21b13c6a 100644
--- a/base/applications/mspaint/lang/en-GB.rc
+++ b/base/applications/mspaint/lang/en-GB.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d dots per inch"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/en-US.rc b/base/applications/mspaint/lang/en-US.rc
index 935c3fe4c8b..805c239e8d0 100644
--- a/base/applications/mspaint/lang/en-US.rc
+++ b/base/applications/mspaint/lang/en-US.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d dots per inch"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/es-ES.rc b/base/applications/mspaint/lang/es-ES.rc
index ac60a967781..a851b972dfc 100644
--- a/base/applications/mspaint/lang/es-ES.rc
+++ b/base/applications/mspaint/lang/es-ES.rc
@@ -265,4 +265,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/et-EE.rc b/base/applications/mspaint/lang/et-EE.rc
index 1f8012d233f..78d33480f3a 100644
--- a/base/applications/mspaint/lang/et-EE.rc
+++ b/base/applications/mspaint/lang/et-EE.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/eu-ES.rc b/base/applications/mspaint/lang/eu-ES.rc
index 1adb078efad..f9f38cd2056 100644
--- a/base/applications/mspaint/lang/eu-ES.rc
+++ b/base/applications/mspaint/lang/eu-ES.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/fr-FR.rc b/base/applications/mspaint/lang/fr-FR.rc
index cadd7699281..8ea08410321 100644
--- a/base/applications/mspaint/lang/fr-FR.rc
+++ b/base/applications/mspaint/lang/fr-FR.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/he-IL.rc b/base/applications/mspaint/lang/he-IL.rc
index 03b1ef391e8..7735f853725 100644
--- a/base/applications/mspaint/lang/he-IL.rc
+++ b/base/applications/mspaint/lang/he-IL.rc
@@ -265,4 +265,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/hu-HU.rc b/base/applications/mspaint/lang/hu-HU.rc
index d3299286f57..03315eabded 100644
--- a/base/applications/mspaint/lang/hu-HU.rc
+++ b/base/applications/mspaint/lang/hu-HU.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/id-ID.rc b/base/applications/mspaint/lang/id-ID.rc
index 9ae48324433..eeda00200d3 100644
--- a/base/applications/mspaint/lang/id-ID.rc
+++ b/base/applications/mspaint/lang/id-ID.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/it-IT.rc b/base/applications/mspaint/lang/it-IT.rc
index d55a546848e..63ad7624367 100644
--- a/base/applications/mspaint/lang/it-IT.rc
+++ b/base/applications/mspaint/lang/it-IT.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/ja-JP.rc b/base/applications/mspaint/lang/ja-JP.rc
index b44eb8b4b74..a98a0f73bab 100644
--- a/base/applications/mspaint/lang/ja-JP.rc
+++ b/base/applications/mspaint/lang/ja-JP.rc
@@ -264,4 +264,5 @@ BEGIN
IDS_PRINTRES "%d x %d ピクセル/cm"
IDS_CANTPASTE "クリップボードからの貼り付けに失敗しました。データ形式が間違っているか、未対応です。"
IDS_SAVEERROR "次のファイルとして画像を保存するのに失敗しました:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/nl-NL.rc b/base/applications/mspaint/lang/nl-NL.rc
index a08efcab887..29daec70fc7 100644
--- a/base/applications/mspaint/lang/nl-NL.rc
+++ b/base/applications/mspaint/lang/nl-NL.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/no-NO.rc b/base/applications/mspaint/lang/no-NO.rc
index 40290499bb0..7a16a4d668f 100644
--- a/base/applications/mspaint/lang/no-NO.rc
+++ b/base/applications/mspaint/lang/no-NO.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/pl-PL.rc b/base/applications/mspaint/lang/pl-PL.rc
index 9dbc184b3c1..b35b2691d2a 100644
--- a/base/applications/mspaint/lang/pl-PL.rc
+++ b/base/applications/mspaint/lang/pl-PL.rc
@@ -265,4 +265,5 @@ BEGIN
IDS_PRINTRES "%d x %d piksel/cm"
IDS_CANTPASTE "Nie można wkleić ze schowka. Format danych jest nieprawidłowy lub nieobsługiwany."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/pt-BR.rc b/base/applications/mspaint/lang/pt-BR.rc
index 9ae3d5de864..c551cd77671 100644
--- a/base/applications/mspaint/lang/pt-BR.rc
+++ b/base/applications/mspaint/lang/pt-BR.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/pt-PT.rc b/base/applications/mspaint/lang/pt-PT.rc
index 8f164db2991..7ff2ba98503 100644
--- a/base/applications/mspaint/lang/pt-PT.rc
+++ b/base/applications/mspaint/lang/pt-PT.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/ro-RO.rc b/base/applications/mspaint/lang/ro-RO.rc
index d6afd6a9a01..447e01c5337 100644
--- a/base/applications/mspaint/lang/ro-RO.rc
+++ b/base/applications/mspaint/lang/ro-RO.rc
@@ -264,4 +264,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixeli/cm"
IDS_CANTPASTE "Nu a putut fi lipit din clipboard. Formatul de date este fie incorect, fie nesuportat."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/ru-RU.rc b/base/applications/mspaint/lang/ru-RU.rc
index 654ea538794..125eadbcfdf 100644
--- a/base/applications/mspaint/lang/ru-RU.rc
+++ b/base/applications/mspaint/lang/ru-RU.rc
@@ -266,4 +266,5 @@ BEGIN
IDS_PRINTRES "%d x %d точек/см"
IDS_CANTPASTE "Не удалось вставить из буфера обмена. Формат данных либо некорректный, либо не поддерживается."
IDS_SAVEERROR "Не удалось сохранить точечный рисунок в файл:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/sk-SK.rc b/base/applications/mspaint/lang/sk-SK.rc
index de9943cb899..dd80ce12592 100644
--- a/base/applications/mspaint/lang/sk-SK.rc
+++ b/base/applications/mspaint/lang/sk-SK.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/sq-AL.rc b/base/applications/mspaint/lang/sq-AL.rc
index ca4fb20a5bc..a60ef9a2774 100644
--- a/base/applications/mspaint/lang/sq-AL.rc
+++ b/base/applications/mspaint/lang/sq-AL.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/sv-SE.rc b/base/applications/mspaint/lang/sv-SE.rc
index a944710d617..dfe72b9b0b9 100644
--- a/base/applications/mspaint/lang/sv-SE.rc
+++ b/base/applications/mspaint/lang/sv-SE.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/tr-TR.rc b/base/applications/mspaint/lang/tr-TR.rc
index 9026820d5d7..fab8c39fcc3 100644
--- a/base/applications/mspaint/lang/tr-TR.rc
+++ b/base/applications/mspaint/lang/tr-TR.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/uk-UA.rc b/base/applications/mspaint/lang/uk-UA.rc
index 2710a7e410a..f0e0676589a 100644
--- a/base/applications/mspaint/lang/uk-UA.rc
+++ b/base/applications/mspaint/lang/uk-UA.rc
@@ -264,4 +264,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/vi-VN.rc b/base/applications/mspaint/lang/vi-VN.rc
index 4cc725d213c..b1c7c2cc227 100644
--- a/base/applications/mspaint/lang/vi-VN.rc
+++ b/base/applications/mspaint/lang/vi-VN.rc
@@ -262,4 +262,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/zh-CN.rc b/base/applications/mspaint/lang/zh-CN.rc
index e2283e68e6f..43fa7f34582 100644
--- a/base/applications/mspaint/lang/zh-CN.rc
+++ b/base/applications/mspaint/lang/zh-CN.rc
@@ -265,4 +265,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/zh-HK.rc b/base/applications/mspaint/lang/zh-HK.rc
index c76ec7920aa..ff88459ddc6 100644
--- a/base/applications/mspaint/lang/zh-HK.rc
+++ b/base/applications/mspaint/lang/zh-HK.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/lang/zh-TW.rc b/base/applications/mspaint/lang/zh-TW.rc
index 776a7e5d7e3..10401e53cb8 100644
--- a/base/applications/mspaint/lang/zh-TW.rc
+++ b/base/applications/mspaint/lang/zh-TW.rc
@@ -263,4 +263,5 @@ BEGIN
IDS_PRINTRES "%d x %d pixel/cm"
IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
IDS_SAVEERROR "Failed to save the bitmap to file:\n\n%s"
+ IDS_CANTSENDMAIL "Failed to send a mail."
END
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp
index a4cbb54b5b0..ba7ad18c213 100644
--- a/base/applications/mspaint/main.cpp
+++ b/base/applications/mspaint/main.cpp
@@ -7,10 +7,14 @@
#include "precomp.h"
+#include <mapi.h>
+#include <mapicode.h>
+
POINT g_ptStart, g_ptEnd;
BOOL g_askBeforeEnlarging = FALSE; // TODO: initialize from registry
HINSTANCE g_hinstExe = NULL;
TCHAR g_szFileName[MAX_LONG_PATH] = { 0 };
+WCHAR g_szMailTempFile[MAX_LONG_PATH] = { 0 };
BOOL g_isAFile = FALSE;
BOOL g_imageSaved = FALSE;
BOOL g_showGrid = FALSE;
@@ -69,6 +73,116 @@ OFNHookProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return 0;
}
+typedef ULONG (WINAPI *FN_MAPISendMail)(LHANDLE, ULONG_PTR, lpMapiMessage, FLAGS, ULONG);
+typedef ULONG (WINAPI *FN_MAPISendMailW)(LHANDLE, ULONG_PTR, lpMapiMessageW, FLAGS, ULONG);
+
+BOOL OpenMailer(HWND hWnd, LPCWSTR pszPathName)
+{
+ // Delete the temporary file if any
+ if (g_szMailTempFile[0])
+ {
+ ::DeleteFileW(g_szMailTempFile);
+ g_szMailTempFile[0] = UNICODE_NULL;
+ }
+
+ CStringW strFileTitle;
+ if (PathFileExistsW(pszPathName) && imageModel.IsImageSaved())
+ {
+ strFileTitle = PathFindFileNameW(pszPathName);
+ }
+ else // Not existing or not saved
+ {
+ // Get the name of a temporary file
+ WCHAR szTempDir[MAX_PATH];
+ ::GetTempPathW(_countof(szTempDir), szTempDir);
+ if (!::GetTempFileNameW(szTempDir, L"afx", 0, g_szMailTempFile))
+ return FALSE; // Failure
+
+ if (PathFileExistsW(g_szFileName))
+ {
+ // Set file title
+ strFileTitle = PathFindFileNameW(g_szFileName);
+
+ // Copy to the temporary file
+ if (!::CopyFileW(g_szFileName, g_szMailTempFile, FALSE))
+ {
+ g_szMailTempFile[0] = UNICODE_NULL;
+ return FALSE; // Failure
+ }
+ }
+ else
+ {
+ // Set file title
+ strFileTitle.LoadString(IDS_DEFAULTFILENAME);
+ strFileTitle += L".png";
+
+ // Save it to the temporary file
+ HBITMAP hbm = imageModel.CopyBitmap();
+ BOOL ret = SaveDIBToFile(hbm, g_szMailTempFile, FALSE, Gdiplus::ImageFormatPNG);
+ ::DeleteObject(hbm);
+ if (!ret)
+ {
+ g_szMailTempFile[0] = UNICODE_NULL;
+ return FALSE; // Failure
+ }
+ }
+
+ // Use the temporary file
+ pszPathName = g_szMailTempFile;
+ }
+
+ // Load "mapi32.dll"
+ HINSTANCE hMAPI = LoadLibraryW(L"mapi32.dll");
+ if (!hMAPI)
+ return FALSE; // Failure
+
+ // Attachment
+ MapiFileDescW attachmentW = { 0 };
+ attachmentW.nPosition = (ULONG)-1;
+ attachmentW.lpszPathName = (LPWSTR)pszPathName;
+ attachmentW.lpszFileName = (LPWSTR)(LPCWSTR)strFileTitle;
+
+ // Message with attachment
+ MapiMessageW messageW = { 0 };
+ messageW.lpszSubject = NULL;
+ messageW.nFileCount = 1;
+ messageW.lpFiles = &attachmentW;
+
+ // First, try to open the mailer by the function of Unicode version
+ FN_MAPISendMailW pMAPISendMailW = (FN_MAPISendMailW)::GetProcAddress(hMAPI, "MAPISendMailW");
+ if (pMAPISendMailW)
+ {
+ pMAPISendMailW(0, (ULONG_PTR)hWnd, &messageW, MAPI_DIALOG | MAPI_LOGON_UI, 0);
+ ::FreeLibrary(hMAPI);
+ return TRUE; // MAPISendMailW will show an error message on failure
+ }
+
+ // Convert to ANSI strings
+ CStringA szPathNameA(pszPathName), szFileTitleA(strFileTitle);
+
+ MapiFileDesc attachment = { 0 };
+ attachment.nPosition = (ULONG)-1;
+ attachment.lpszPathName = (LPSTR)(LPCSTR)szPathNameA;
+ attachment.lpszFileName = (LPSTR)(LPCSTR)szFileTitleA;
+
+ MapiMessage message = { 0 };
+ message.lpszSubject = NULL;
+ message.nFileCount = 1;
+ message.lpFiles = &attachment;
+
+ // Try again but in ANSI version
+ FN_MAPISendMail pMAPISendMail = (FN_MAPISendMail)::GetProcAddress(hMAPI, "MAPISendMail");
+ if (pMAPISendMail)
+ {
+ pMAPISendMail(0, (ULONG_PTR)hWnd, &message, MAPI_DIALOG | MAPI_LOGON_UI, 0);
+ ::FreeLibrary(hMAPI);
+ return TRUE; // MAPISendMail will show an error message on failure
+ }
+
+ ::FreeLibrary(hMAPI);
+ return FALSE; // Failure
+}
+
BOOL CMainWindow::GetOpenFileName(IN OUT LPTSTR pszFile, INT cchMaxFile)
{
static OPENFILENAME ofn = { 0 };
@@ -238,6 +352,9 @@ _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, INT nC
// Write back settings to registry
registrySettings.Store();
+ if (g_szMailTempFile[0])
+ ::DeleteFileW(g_szMailTempFile);
+
// Return the value that PostQuitMessage() gave
return (INT)msg.wParam;
}
diff --git a/base/applications/mspaint/resource.h b/base/applications/mspaint/resource.h
index 1e34232d3c1..4ec9f9a0f98 100644
--- a/base/applications/mspaint/resource.h
+++ b/base/applications/mspaint/resource.h
@@ -221,3 +221,4 @@
#define IDS_PRINTRES 939
#define IDS_CANTPASTE 940
#define IDS_SAVEERROR 941
+#define IDS_CANTSENDMAIL 942
diff --git a/base/applications/mspaint/winproc.cpp b/base/applications/mspaint/winproc.cpp
index f930174d45d..7aa25091766 100644
--- a/base/applications/mspaint/winproc.cpp
+++ b/base/applications/mspaint/winproc.cpp
@@ -666,6 +666,13 @@ LRESULT CMainWindow::OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
if (pd.hDevNames)
GlobalFree(pd.hDevNames);
break;
+ case IDM_FILESEND:
+ canvasWindow.finishDrawing();
+ if (!OpenMailer(m_hWnd, g_szFileName))
+ {
+ ShowError(IDS_CANTSENDMAIL);
+ }
+ break;
case IDM_FILEASWALLPAPERPLANE:
RegistrySettings::SetWallpaper(g_szFileName, RegistrySettings::TILED);
break;
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3463a3fba35489c36301f…
commit 3463a3fba35489c36301f11a7f3b164c2570257c
Author: Jose Carlos Jesus <zecarlos1957(a)hotmail.com>
AuthorDate: Wed Aug 9 05:54:52 2023 -0400
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Aug 9 11:54:52 2023 +0200
[USETUP] Update Portuguese (pt-PT) translation (#5508)
Fix a typo, and add three forgotten error codes to pt-PT language.
Co-authored-by: SecurityAndStuff <74931194+SecurityAndStuff(a)users.noreply.github.com>
---
base/setup/usetup/lang/pt-PT.h | 51 +++++++++++++++++++++++++++---------------
1 file changed, 33 insertions(+), 18 deletions(-)
diff --git a/base/setup/usetup/lang/pt-PT.h b/base/setup/usetup/lang/pt-PT.h
index 3338810b0ac..6ee892d49ba 100644
--- a/base/setup/usetup/lang/pt-PT.h
+++ b/base/setup/usetup/lang/pt-PT.h
@@ -1389,7 +1389,7 @@ static MUI_ENTRY ptPTInstallDirectoryEntries[] =
{
6,
8,
- "O instalador ir\240 copiar os arquivos para a parti\207\306o seleccionada.",
+ "O instalador ir\240 copiar os ficheiros para a parti\207\306o seleccionada.",
TEXT_STYLE_NORMAL,
TEXT_ID_STATIC
},
@@ -1455,7 +1455,7 @@ static MUI_ENTRY ptPTFileCopyEntries[] =
{
0,
13,
- "arquivos do ReactOS para a pasta de instala\207\306o.",
+ "ficheiros do ReactOS para a pasta de instala\207\306o.",
TEXT_STYLE_NORMAL | TEXT_ALIGN_CENTER,
TEXT_ID_STATIC
},
@@ -1702,7 +1702,7 @@ static MUI_ENTRY ptPTPrepareCopyEntries[] =
{
6,
8,
- "O instalador est\240 a preparar o computador para copiar os arquivos",
+ "O instalador est\240 a preparar o computador para copiar os ficheiros",
TEXT_STYLE_NORMAL,
TEXT_ID_STATIC
},
@@ -1716,7 +1716,7 @@ static MUI_ENTRY ptPTPrepareCopyEntries[] =
{
0,
0,
- "A montar a lista de arquivos a serem copiados...",
+ "A montar a lista de ficheiros a serem copiados...",
TEXT_TYPE_STATUS | TEXT_PADDING_BIG,
TEXT_ID_STATIC
},
@@ -1741,7 +1741,7 @@ static MUI_ENTRY ptPTSelectFSEntries[] =
{
6,
16,
- "Seleccione um sistema de arquivos para a nova parti\207\306o na lista abaixo.",
+ "Seleccione um sistema de ficheiros para a nova parti\207\306o na lista abaixo.",
0
},
{
@@ -1753,7 +1753,7 @@ static MUI_ENTRY ptPTSelectFSEntries[] =
{
6,
18,
- "sistema de arquivos desejado e pressione ENTER.",
+ "sistema de ficheiros desejado e pressione ENTER.",
0
},
{
@@ -1884,9 +1884,24 @@ MUI_ERROR ptPTErrorEntries[] =
" \x07 Para sair da instala\207\306o, pressione F3.",
"F3=Sair ENTER=Continuar"
},
+ {
+ // ERROR_NO_BUILD_PATH
+ "Falha ao criar os caminhos para o direct\242rio de instala\207\306o do ReactOS!\n"
+ "ENTER = Reiniciar o computador"
+ },
+ {
+ // ERROR_SOURCE_PATH
+ "N\306o pode excluir a parti\207\306o que cont\202m a fonte de instala\207\306o!\n"
+ "ENTER = Reiniciar o computador"
+ },
+ {
+ // ERROR_SOURCE_DIR
+ "N\306o pode instalar o ReactOS dentro do direct\242rio de origem da instala\207\306o!\n"
+ "ENTER = Reiniciar o computador"
+ },
{
// ERROR_NO_HDD
- "N\306o foi poss\241vel localizar um disco r\241digo.\n",
+ "N\306o foi poss\241vel localizar um disco r\241gido.\n",
"ENTER=Reiniciar"
},
{
@@ -1896,17 +1911,17 @@ MUI_ERROR ptPTErrorEntries[] =
},
{
// ERROR_LOAD_TXTSETUPSIF
- "N\306o foi poss\241vel carregar o arquivo TXTSETUP.SIF.\n",
+ "N\306o foi poss\241vel carregar o ficheiro TXTSETUP.SIF.\n",
"ENTER=Reiniciar"
},
{
// ERROR_CORRUPT_TXTSETUPSIF
- "O arquivos TXTSETUP.SIF est\240 corrompido.\n",
+ "O ficheiro TXTSETUP.SIF est\240 corrompido.\n",
"ENTER=Reiniciar"
},
{
// ERROR_SIGNATURE_TXTSETUPSIF,
- "O arquivo TXTSETUP.SIF est\240 com a assinatura incorrecta.\n",
+ "O ficheiro TXTSETUP.SIF est\240 com a assinatura incorrecta.\n",
"ENTER=Reiniciar"
},
{
@@ -1987,12 +2002,12 @@ MUI_ERROR ptPTErrorEntries[] =
},
{
// ERROR_IMPORT_HIVE,
- "N\306o foi poss\241vel importar o arquivo de estrutura.",
+ "N\306o foi poss\241vel importar o ficheiro de estrutura.",
"ENTER=Reiniciar"
},
{
// ERROR_FIND_REGISTRY
- "N\306o foi poss\241vel encontrar os arquivos do registo.",
+ "N\306o foi poss\241vel encontrar os ficheiros do registo.",
"ENTER=Reiniciar"
},
{
@@ -2007,22 +2022,22 @@ MUI_ERROR ptPTErrorEntries[] =
},
{
// ERROR_INVALID_CABINET_INF,
- "O arquivo cab n\306o cont\202m um arquivo inf v\240lido.\n",
+ "O ficheiro cab n\306o cont\202m um ficheiro inf v\240lido.\n",
"ENTER=Reiniciar"
},
{
// ERROR_CABINET_MISSING,
- "N\306o foi poss\241vel econtrar o arquivo cab.\n",
+ "N\306o foi poss\241vel encontrar o ficheiro cab.\n",
"ENTER=Reiniciar"
},
{
// ERROR_CABINET_SCRIPT,
- "O arquivo cab n\306o cont\202m um script de instala\207\306o.\n",
+ "O ficheiro cab n\306o cont\202m um script de instala\207\306o.\n",
"ENTER=Reiniciar"
},
{
// ERROR_COPY_QUEUE,
- "N\306o foi poss\241vel abrir a lista de arquivos para c\242pia.\n",
+ "N\306o foi poss\241vel abrir a lista de ficheiros para c\242pia.\n",
"ENTER=Reiniciar"
},
{
@@ -2033,13 +2048,13 @@ MUI_ERROR ptPTErrorEntries[] =
{
// ERROR_TXTSETUP_SECTION,
"N\306o foi poss\241vel encontrar a sec\207\306o '%S' no\n"
- "arquivo TXTSETUP.SIF.\n",
+ "ficheiro TXTSETUP.SIF.\n",
"ENTER=Reiniciar"
},
{
// ERROR_CABINET_SECTION,
"N\306o foi poss\241vel encontrar a sec\207\306o '%S' no\n"
- "arquivo cab.\n",
+ "ficheiro cab.\n",
"ENTER=Reiniciar"
},
{
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=815d55c3782fce6f36f44…
commit 815d55c3782fce6f36f445405a33974e1ff9276c
Author: Andrew Dent <dent.ace(a)gmail.com>
AuthorDate: Wed Aug 9 10:48:59 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Aug 9 11:48:59 2023 +0200
[REACTOS] British English spellings (#5533)
Fix spellings for en-GB:
- Centre.
- Colour.
- Customise.
- Unauthorise.
---
base/applications/mspaint/lang/en-GB.rc | 4 ++--
dll/cpl/desk/lang/en-GB.rc | 6 +++---
dll/win32/shell32/lang/en-GB.rc | 10 +++++-----
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/base/applications/mspaint/lang/en-GB.rc b/base/applications/mspaint/lang/en-GB.rc
index 69e8873cf75..ce5b06fd04f 100644
--- a/base/applications/mspaint/lang/en-GB.rc
+++ b/base/applications/mspaint/lang/en-GB.rc
@@ -27,7 +27,7 @@ BEGIN
MENUITEM "Send...", IDM_FILESEND
MENUITEM SEPARATOR
MENUITEM "Set as wallpaper (Tiled)", IDM_FILEASWALLPAPERPLANE
- MENUITEM "Set as wallpaper (Centered)", IDM_FILEASWALLPAPERCENTERED
+ MENUITEM "Set as wallpaper (Centred)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Set as wallpaper (Stretched)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Most recently used file", IDM_FILEMOSTRECENTLYUSEDFILE, GRAYED
@@ -114,7 +114,7 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "Rotate/&Mirror...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "&Stretch/Skew...\tCtrl+W", IDM_IMAGESTRETCHSKEW
- MENUITEM "&Invert colors\tCtrl+I", IDM_IMAGEINVERTCOLORS
+ MENUITEM "&Invert colours\tCtrl+I", IDM_IMAGEINVERTCOLORS
END
END
diff --git a/dll/cpl/desk/lang/en-GB.rc b/dll/cpl/desk/lang/en-GB.rc
index 6383c7d4875..bd8a26ccfcd 100644
--- a/dll/cpl/desk/lang/en-GB.rc
+++ b/dll/cpl/desk/lang/en-GB.rc
@@ -26,7 +26,7 @@ BEGIN
PUSHBUTTON "&Colour...", IDC_COLOR_BUTTON, 188, 167, 55, 15
LTEXT "&Placement", IDC_STATIC, 188, 128, 55, 9
COMBOBOX IDC_PLACEMENT_COMBO, 188, 139, 55, 54, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
- PUSHBUTTON "Customize &Desktop...", IDC_DESKTOP_CUSTOM, 8, 194, 90, 15
+ PUSHBUTTON "Customise &Desktop...", IDC_DESKTOP_CUSTOM, 8, 194, 90, 15
END
IDD_SCREENSAVER DIALOGEX 0, 0, 246, 202
@@ -246,9 +246,9 @@ END
STRINGTABLE
BEGIN
IDS_CPLNAME "Display"
- IDS_CPLDESCRIPTION "Customizes the desktop display and screen saver."
+ IDS_CPLDESCRIPTION "Customises the desktop display and screen saver."
IDS_NONE "(None)"
- IDS_CENTER "Center"
+ IDS_CENTER "Centre"
IDS_STRETCH "Stretch"
IDS_TILE "Tile"
IDS_FIT "Fit"
diff --git a/dll/win32/shell32/lang/en-GB.rc b/dll/win32/shell32/lang/en-GB.rc
index cec926eab93..e7415d373ae 100644
--- a/dll/win32/shell32/lang/en-GB.rc
+++ b/dll/win32/shell32/lang/en-GB.rc
@@ -207,7 +207,7 @@ BEGIN
ICON IDI_SHELL_EXTENDED_PROPERTIES, IDI_SHELL_EXTENDED_PROPERTIES, 5, 5, 21, 20, SS_ICON
LTEXT "Choose the advanced properties you want for this shortcut.", -1, 5, 30, 210, 10
CHECKBOX "Run with different credentials", IDC_SHORTEX_RUN_DIFFERENT, 25, 50, 150, 10
- LTEXT "This option can allow you to run the this shortcut as another user, or continue as yourself while protecting your computer and data from unauthorized program activity.", -1, 50, 60, 175, 40
+ LTEXT "This option can allow you to run the this shortcut as another user, or continue as yourself while protecting your computer and data from unauthorised program activity.", -1, 50, 60, 175, 40
CHECKBOX "Run in seperate memory space", IDC_SHORTEX_RUN_SEPARATE, 25, 100, 150, 10, WS_DISABLED
PUSHBUTTON "OK", IDOK, 63, 124, 50, 15, WS_VISIBLE
PUSHBUTTON "Abort", IDCANCEL, 120, 124, 50, 15, WS_VISIBLE
@@ -362,7 +362,7 @@ FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
LTEXT "Which user account do you want to use to run this program?", -1, 10, 20, 220, 20
CHECKBOX "Current User %s", 14000, 10, 45, 150, 10
- LTEXT "Protect my computer and data from unauthorized program activity", -1, 25, 57, 200, 10, WS_DISABLED
+ LTEXT "Protect my computer and data from unauthorised program activity", -1, 25, 57, 200, 10, WS_DISABLED
CHECKBOX "This option can prevent computer viruses from harming your computer or personal data, but selecting it might cause the program to function improperly.", 14001, 25, 68, 200, 30, WS_DISABLED | BS_MULTILINE
CHECKBOX "The following user:", 14002, 10, 100, 90, 10
LTEXT "User name:", -1, 20, 118, 54, 10
@@ -702,7 +702,7 @@ BEGIN
END
IDD_FOLDER_CUSTOMIZE DIALOGEX 0, 0, 240, 250
-CAPTION "Customize"
+CAPTION "Customise"
STYLE DS_SHELLFONT | WS_CHILD | WS_CAPTION
FONT 8, "MS Shell Dlg"
BEGIN
@@ -770,7 +770,7 @@ BEGIN
/* special folders descriptions */
IDS_ADMINISTRATIVETOOLS_DESCRIPTION "Configure administrative settings for your computer."
- IDS_FOLDER_OPTIONS_DESCRIPTION "Customize the display of files and folders and change file associations."
+ IDS_FOLDER_OPTIONS_DESCRIPTION "Customise the display of files and folders and change file associations."
IDS_FONTS_DESCRIPTION "Add, change, and manage fonts on your computer."
IDS_PRINTERS_DESCRIPTION "Shows installed printers and fax printers and helps you add new ones."
@@ -1005,7 +1005,7 @@ BEGIN
IDS_ADVANCED_CLASSIC_VIEW_STATE "Remember each folder's view settings"
IDS_ADVANCED_PERSIST_BROWSERS "Restore previous folder windows at logon"
IDS_ADVANCED_CONTROL_PANEL_IN_MY_COMPUTER "Show Control Panel in My Computer"
- IDS_ADVANCED_SHOW_COMP_COLOR "Show encrypted or compressed NTFS files in color"
+ IDS_ADVANCED_SHOW_COMP_COLOR "Show encrypted or compressed NTFS files in colour"
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_NEWEXT_ADVANCED_LEFT "<< Ad&vanced"
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=72ea2d4c265355e740421…
commit 72ea2d4c265355e740421d0cc67d4a2f0a974602
Author: Andrew Dent <dent.ace(a)gmail.com>
AuthorDate: Wed Aug 9 10:48:07 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Aug 9 11:48:07 2023 +0200
[REACTOS] Spelling fixes (#5534)
Fix spellings / hyphenation: `unassociate` ; `read-only` ; `double-click`
---
base/shell/cmd/lang/cs-CZ.rc | 2 +-
base/shell/cmd/lang/en-US.rc | 2 +-
base/shell/cmd/lang/sk-SK.rc | 2 +-
base/shell/explorer/traywnd.cpp | 2 +-
dll/cpl/main/mouse.c | 2 +-
dll/win32/devmgr/devmgmt/DeviceView.cpp | 2 +-
dll/win32/shell32/lang/bg-BG.rc | 2 +-
dll/win32/shell32/lang/ca-ES.rc | 2 +-
dll/win32/shell32/lang/cs-CZ.rc | 2 +-
dll/win32/shell32/lang/da-DK.rc | 2 +-
dll/win32/shell32/lang/el-GR.rc | 2 +-
dll/win32/shell32/lang/en-GB.rc | 2 +-
dll/win32/shell32/lang/en-US.rc | 2 +-
dll/win32/shell32/lang/fi-FI.rc | 2 +-
dll/win32/shell32/lang/he-IL.rc | 2 +-
dll/win32/shell32/lang/it-IT.rc | 2 +-
dll/win32/shell32/lang/ko-KR.rc | 2 +-
dll/win32/shell32/lang/nl-NL.rc | 2 +-
dll/win32/shell32/lang/no-NO.rc | 2 +-
dll/win32/shell32/lang/pt-BR.rc | 2 +-
dll/win32/shell32/lang/sk-SK.rc | 2 +-
dll/win32/shell32/lang/sl-SI.rc | 2 +-
dll/win32/shell32/lang/sq-AL.rc | 2 +-
dll/win32/shell32/lang/sv-SE.rc | 2 +-
modules/rosapps/applications/cmdutils/vfdcmd/vfdmsg.mc | 4 ++--
sdk/include/reactos/mc/errcodes.mc | 12 ++++++------
sdk/include/reactos/mc/ntstatus.mc | 2 +-
win32ss/user/ntuser/msgqueue.c | 8 ++++----
28 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/base/shell/cmd/lang/cs-CZ.rc b/base/shell/cmd/lang/cs-CZ.rc
index 25b7282795d..043cbcfca8a 100644
--- a/base/shell/cmd/lang/cs-CZ.rc
+++ b/base/shell/cmd/lang/cs-CZ.rc
@@ -126,7 +126,7 @@ ERASE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...\n\n\
/S Delete file from all sub directory\n\
/A Select files to be deleted based on attributes.\n\
attributes\n\
- R Read Only files\n\
+ R Read-only files\n\
S System files\n\
A Archiveable files\n\
H Hidden Files\n\
diff --git a/base/shell/cmd/lang/en-US.rc b/base/shell/cmd/lang/en-US.rc
index 070e997db8c..e530cda2db9 100644
--- a/base/shell/cmd/lang/en-US.rc
+++ b/base/shell/cmd/lang/en-US.rc
@@ -121,7 +121,7 @@ ERASE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...\n\n\
/S Delete file from all sub directory\n\
/A Select files to be deleted based on attributes.\n\
attributes\n\
- R Read Only files\n\
+ R Read-only files\n\
S System files\n\
A Archiveable files\n\
H Hidden Files\n\
diff --git a/base/shell/cmd/lang/sk-SK.rc b/base/shell/cmd/lang/sk-SK.rc
index c8da98bdfda..eccaa057f3b 100644
--- a/base/shell/cmd/lang/sk-SK.rc
+++ b/base/shell/cmd/lang/sk-SK.rc
@@ -127,7 +127,7 @@ ERASE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...\n\n\
/S Delete file from all sub directory\n\
/A Select files to be deleted based on attributes.\n\
attributes\n\
- R Read Only files\n\
+ R Read-only files\n\
S System files\n\
A Archiveable files\n\
H Hidden Files\n\
diff --git a/base/shell/explorer/traywnd.cpp b/base/shell/explorer/traywnd.cpp
index 576630a3359..2fbcea85299 100644
--- a/base/shell/explorer/traywnd.cpp
+++ b/base/shell/explorer/traywnd.cpp
@@ -3138,7 +3138,7 @@ HandleTrayContextMenu:
LRESULT OnNcLButtonDblClick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
- /* Let the clock handle the double click */
+ /* Let the clock handle the double-click */
::SendMessageW(m_TrayNotify, uMsg, wParam, lParam);
/* We "handle" this message so users can't cause a weird maximize/restore
diff --git a/dll/cpl/main/mouse.c b/dll/cpl/main/mouse.c
index 022515c61e9..28ca28f3590 100644
--- a/dll/cpl/main/mouse.c
+++ b/dll/cpl/main/mouse.c
@@ -382,7 +382,7 @@ ButtonProc(IN HWND hwndDlg,
/* Reset swap mouse button setting */
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP, pButtonData->g_OrigSwapMouseButtons, NULL, 0);
- /* Reset double click speed setting */
+ /* Reset double-click speed setting */
SystemParametersInfo(SPI_SETDOUBLECLICKTIME, pButtonData->g_OrigDoubleClickSpeed, NULL, 0);
//SetDoubleClickTime(pButtonData->g_OrigDoubleClickSpeed);
}
diff --git a/dll/win32/devmgr/devmgmt/DeviceView.cpp b/dll/win32/devmgr/devmgmt/DeviceView.cpp
index 8fae7fbb601..3b38bf208e2 100644
--- a/dll/win32/devmgr/devmgmt/DeviceView.cpp
+++ b/dll/win32/devmgr/devmgmt/DeviceView.cpp
@@ -135,7 +135,7 @@ CDeviceView::OnDoubleClick(
GetCursorPos(&hitInfo.pt);
ScreenToClient(m_hTreeView, &hitInfo.pt);
- // Check if we are trying to double click an item
+ // Check if we are trying to double-click an item
hItem = TreeView_HitTest(m_hTreeView, &hitInfo);
if (hItem != NULL && (hitInfo.flags & (TVHT_ONITEM | TVHT_ONITEMICON)))
{
diff --git a/dll/win32/shell32/lang/bg-BG.rc b/dll/win32/shell32/lang/bg-BG.rc
index 3c188becd5e..f748b48b598 100644
--- a/dll/win32/shell32/lang/bg-BG.rc
+++ b/dll/win32/shell32/lang/bg-BG.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/ca-ES.rc b/dll/win32/shell32/lang/ca-ES.rc
index 9825c3a1f92..8fe2ea35f20 100644
--- a/dll/win32/shell32/lang/ca-ES.rc
+++ b/dll/win32/shell32/lang/ca-ES.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/cs-CZ.rc b/dll/win32/shell32/lang/cs-CZ.rc
index 98e83f573d4..779d6ee557a 100644
--- a/dll/win32/shell32/lang/cs-CZ.rc
+++ b/dll/win32/shell32/lang/cs-CZ.rc
@@ -1018,7 +1018,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/da-DK.rc b/dll/win32/shell32/lang/da-DK.rc
index 5dc3bb704fa..b3bb48b457d 100644
--- a/dll/win32/shell32/lang/da-DK.rc
+++ b/dll/win32/shell32/lang/da-DK.rc
@@ -1018,7 +1018,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/el-GR.rc b/dll/win32/shell32/lang/el-GR.rc
index d467a135b78..5ae43f646e1 100644
--- a/dll/win32/shell32/lang/el-GR.rc
+++ b/dll/win32/shell32/lang/el-GR.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/en-GB.rc b/dll/win32/shell32/lang/en-GB.rc
index 6f9b532360d..cec926eab93 100644
--- a/dll/win32/shell32/lang/en-GB.rc
+++ b/dll/win32/shell32/lang/en-GB.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/en-US.rc b/dll/win32/shell32/lang/en-US.rc
index c0277a97623..80920dbd914 100644
--- a/dll/win32/shell32/lang/en-US.rc
+++ b/dll/win32/shell32/lang/en-US.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/fi-FI.rc b/dll/win32/shell32/lang/fi-FI.rc
index bb908ec07ef..983d4fb5fab 100644
--- a/dll/win32/shell32/lang/fi-FI.rc
+++ b/dll/win32/shell32/lang/fi-FI.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/he-IL.rc b/dll/win32/shell32/lang/he-IL.rc
index c23d965bb08..6faa9abaab2 100644
--- a/dll/win32/shell32/lang/he-IL.rc
+++ b/dll/win32/shell32/lang/he-IL.rc
@@ -1014,7 +1014,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "&מתקדם >>"
IDS_NEWEXT_NEW "<חדש>"
IDS_NEWEXT_SPECIFY_EXT "עליך לציין סיומת."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "סיומת בשימוש"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/it-IT.rc b/dll/win32/shell32/lang/it-IT.rc
index c4de6949f82..6414dd62d2e 100644
--- a/dll/win32/shell32/lang/it-IT.rc
+++ b/dll/win32/shell32/lang/it-IT.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/ko-KR.rc b/dll/win32/shell32/lang/ko-KR.rc
index 12306e561a4..4e883d0bcf6 100644
--- a/dll/win32/shell32/lang/ko-KR.rc
+++ b/dll/win32/shell32/lang/ko-KR.rc
@@ -1019,7 +1019,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/nl-NL.rc b/dll/win32/shell32/lang/nl-NL.rc
index 0d5d266a650..51ba62cf5a1 100644
--- a/dll/win32/shell32/lang/nl-NL.rc
+++ b/dll/win32/shell32/lang/nl-NL.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/no-NO.rc b/dll/win32/shell32/lang/no-NO.rc
index 08b1a255184..08d51f68005 100644
--- a/dll/win32/shell32/lang/no-NO.rc
+++ b/dll/win32/shell32/lang/no-NO.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/pt-BR.rc b/dll/win32/shell32/lang/pt-BR.rc
index 8740ac707bf..94b594c7465 100644
--- a/dll/win32/shell32/lang/pt-BR.rc
+++ b/dll/win32/shell32/lang/pt-BR.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/sk-SK.rc b/dll/win32/shell32/lang/sk-SK.rc
index dbff4ad2cc6..d3ea7e6974c 100644
--- a/dll/win32/shell32/lang/sk-SK.rc
+++ b/dll/win32/shell32/lang/sk-SK.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/sl-SI.rc b/dll/win32/shell32/lang/sl-SI.rc
index fe1b69ba5b6..3d5ff4af009 100644
--- a/dll/win32/shell32/lang/sl-SI.rc
+++ b/dll/win32/shell32/lang/sl-SI.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/sq-AL.rc b/dll/win32/shell32/lang/sq-AL.rc
index 733369f50e9..25a95b57dfe 100644
--- a/dll/win32/shell32/lang/sq-AL.rc
+++ b/dll/win32/shell32/lang/sq-AL.rc
@@ -1016,7 +1016,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/dll/win32/shell32/lang/sv-SE.rc b/dll/win32/shell32/lang/sv-SE.rc
index d51b1824c74..46ed208c020 100644
--- a/dll/win32/shell32/lang/sv-SE.rc
+++ b/dll/win32/shell32/lang/sv-SE.rc
@@ -1012,7 +1012,7 @@ BEGIN
IDS_NEWEXT_ADVANCED_RIGHT "Ad&vanced >>"
IDS_NEWEXT_NEW "<New>"
IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
- IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
+ IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to unassociate %s with %s and create a new File Type for it?"
IDS_NEWEXT_EXT_IN_USE "Extension is in use"
IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
diff --git a/modules/rosapps/applications/cmdutils/vfdcmd/vfdmsg.mc b/modules/rosapps/applications/cmdutils/vfdcmd/vfdmsg.mc
index 222c04d7610..33ee9145c2c 100644
--- a/modules/rosapps/applications/cmdutils/vfdcmd/vfdmsg.mc
+++ b/modules/rosapps/applications/cmdutils/vfdcmd/vfdmsg.mc
@@ -1226,7 +1226,7 @@ If the target drive does not have a drive letter, this command also
assigns a local drive letter (see '%1!s!HELP LINK') using the first
available letter.
-Read only files, NTFS encrypted/compressed files and ZIP compressed
+Read-only files, NTFS encrypted/compressed files and ZIP compressed
image files (such as WinImage IMZ file) cannot be mounted directly
and must be opened in RAM mode.
@@ -1374,7 +1374,7 @@ OPTIONS:
The trailing ':' is optional.
The drive 0 is used if not specified.
- /ON Enables the drive write protect - the drive becomes read only.
+ /ON Enables the drive write protect - the drive becomes read-only.
/OFF Disables the drive write protect - the drive becomes writable.
diff --git a/sdk/include/reactos/mc/errcodes.mc b/sdk/include/reactos/mc/errcodes.mc
index a243c8f3a38..96408a3d4d3 100644
--- a/sdk/include/reactos/mc/errcodes.mc
+++ b/sdk/include/reactos/mc/errcodes.mc
@@ -18781,16 +18781,16 @@ Severity=Success
Facility=System
SymbolicName=ERROR_WMI_READ_ONLY
Language=English
-The WMI data item or data block is read only.
+The WMI data item or data block is read-only.
.
Language=Russian
-The WMI data item or data block is read only.
+The WMI data item or data block is read-only.
.
Language=Polish
Element danych WMI lub blok danych są tylko do odczytu.
.
Language=Romanian
-The WMI data item or data block is read only.
+The WMI data item or data block is read-only.
.
MessageId=4214
@@ -21620,16 +21620,16 @@ Severity=Success
Facility=System
SymbolicName=ERROR_FILE_READ_ONLY
Language=English
-The specified file is read only.
+The specified file is read-only.
.
Language=Russian
-The specified file is read only.
+The specified file is read-only.
.
Language=Polish
Podany plik jest tylko do odczytu.
.
Language=Romanian
-The specified file is read only.
+The specified file is read-only.
.
MessageId=6010
diff --git a/sdk/include/reactos/mc/ntstatus.mc b/sdk/include/reactos/mc/ntstatus.mc
index 57b29436033..86c69332ae0 100644
--- a/sdk/include/reactos/mc/ntstatus.mc
+++ b/sdk/include/reactos/mc/ntstatus.mc
@@ -4100,7 +4100,7 @@ Severity=Error
Facility=System
SymbolicName=STATUS_WMI_READ_ONLY
Language=English
-The WMI data item or data block is read only.
+The WMI data item or data block is read-only.
.
MessageId=0x2c7
diff --git a/win32ss/user/ntuser/msgqueue.c b/win32ss/user/ntuser/msgqueue.c
index d35eb38cf9d..8c24de79853 100644
--- a/win32ss/user/ntuser/msgqueue.c
+++ b/win32ss/user/ntuser/msgqueue.c
@@ -1564,7 +1564,7 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, BOOL* NotForUs, L
}
msg->lParam = MAKELONG( pt.x, pt.y );
- /* translate double clicks */
+ /* translate double-clicks */
if ((msg->message == WM_LBUTTONDOWN) ||
(msg->message == WM_RBUTTONDOWN) ||
@@ -1573,7 +1573,7 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, BOOL* NotForUs, L
{
BOOL update = *RemoveMessages;
- /* translate double clicks -
+ /* translate double-clicks -
* note that ...MOUSEMOVEs can slip in between
* ...BUTTONDOWN and ...BUTTONDBLCLK messages */
@@ -1592,7 +1592,7 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, BOOL* NotForUs, L
message += (WM_LBUTTONDBLCLK - WM_LBUTTONDOWN);
if (update)
{
- MessageQueue->msgDblClk.message = 0; /* clear the double click conditions */
+ MessageQueue->msgDblClk.message = 0; /* clear the double-click conditions */
update = FALSE;
}
}
@@ -1604,7 +1604,7 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, BOOL* NotForUs, L
return FALSE;
}
- /* update static double click conditions */
+ /* update static double-click conditions */
if (update) MessageQueue->msgDblClk = *msg;
}
else