https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b774ec5ca62918dc698f2…
commit b774ec5ca62918dc698f2c34d616c4b4c26984fa
Author: Robert Naumann <gonzomdx(a)gmail.com>
AuthorDate: Thu Feb 11 22:04:36 2021 +0100
Commit: Robert Naumann <gonzomdx(a)gmail.com>
CommitDate: Fri Feb 12 20:14:03 2021 +0100
[NOTEPAD] Implement File->New Window
*Windows starts a new own's instance too, when clicking on "New Window"
(Tested by @HBelusca)
---
base/applications/notepad/dialog.c | 7 +++++++
base/applications/notepad/dialog.h | 1 +
base/applications/notepad/lang/bg-BG.rc | 2 ++
base/applications/notepad/lang/cs-CZ.rc | 2 ++
base/applications/notepad/lang/da-DK.rc | 2 ++
base/applications/notepad/lang/de-DE.rc | 2 ++
base/applications/notepad/lang/el-GR.rc | 2 ++
base/applications/notepad/lang/en-US.rc | 2 ++
base/applications/notepad/lang/es-ES.rc | 2 ++
base/applications/notepad/lang/et-EE.rc | 2 ++
base/applications/notepad/lang/eu-ES.rc | 2 ++
base/applications/notepad/lang/fi-FI.rc | 2 ++
base/applications/notepad/lang/fr-FR.rc | 2 ++
base/applications/notepad/lang/he-IL.rc | 2 ++
base/applications/notepad/lang/hi-IN.rc | 2 ++
base/applications/notepad/lang/hu-HU.rc | 2 ++
base/applications/notepad/lang/hy-AM.rc | 2 ++
base/applications/notepad/lang/id-ID.rc | 2 ++
base/applications/notepad/lang/it-IT.rc | 2 ++
base/applications/notepad/lang/ja-JP.rc | 2 ++
base/applications/notepad/lang/lt-LT.rc | 2 ++
base/applications/notepad/lang/ms-MY.rc | 2 ++
base/applications/notepad/lang/nl-NL.rc | 2 ++
base/applications/notepad/lang/no-NO.rc | 2 ++
base/applications/notepad/lang/pl-PL.rc | 2 ++
base/applications/notepad/lang/pt-BR.rc | 2 ++
base/applications/notepad/lang/pt-PT.rc | 2 ++
base/applications/notepad/lang/ro-RO.rc | 2 ++
base/applications/notepad/lang/ru-RU.rc | 2 ++
base/applications/notepad/lang/sk-SK.rc | 2 ++
base/applications/notepad/lang/sl-SI.rc | 2 ++
base/applications/notepad/lang/sq-AL.rc | 2 ++
base/applications/notepad/lang/sv-SE.rc | 2 ++
base/applications/notepad/lang/th-TH.rc | 2 ++
base/applications/notepad/lang/tr-TR.rc | 2 ++
base/applications/notepad/lang/uk-UA.rc | 2 ++
base/applications/notepad/lang/uz-UZ.rc | 2 ++
base/applications/notepad/lang/zh-CN.rc | 2 ++
base/applications/notepad/lang/zh-TW.rc | 2 ++
base/applications/notepad/main.c | 1 +
base/applications/notepad/notepad_res.h | 11 ++++++-----
41 files changed, 89 insertions(+), 5 deletions(-)
diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c
index ca2711c8513..c5b743e0ba4 100644
--- a/base/applications/notepad/dialog.c
+++ b/base/applications/notepad/dialog.c
@@ -415,6 +415,13 @@ VOID DIALOG_FileNew(VOID)
}
}
+VOID DIALOG_FileNewWindow(VOID)
+{
+ TCHAR pszNotepadExe[MAX_PATH];
+ GetModuleFileName(NULL, pszNotepadExe, ARRAYSIZE(pszNotepadExe));
+ ShellExecute(NULL, NULL, pszNotepadExe, NULL, NULL, SW_SHOWNORMAL);
+}
+
VOID DIALOG_FileOpen(VOID)
{
OPENFILENAME openfilename;
diff --git a/base/applications/notepad/dialog.h b/base/applications/notepad/dialog.h
index f86c522373c..98104dcc6e5 100644
--- a/base/applications/notepad/dialog.h
+++ b/base/applications/notepad/dialog.h
@@ -21,6 +21,7 @@
#pragma once
VOID DIALOG_FileNew(VOID);
+VOID DIALOG_FileNewWindow(VOID);
VOID DIALOG_FileOpen(VOID);
BOOL DIALOG_FileSave(VOID);
BOOL DIALOG_FileSaveAs(VOID);
diff --git a/base/applications/notepad/lang/bg-BG.rc
b/base/applications/notepad/lang/bg-BG.rc
index 33be11f9be4..c1e3d5a2905 100644
--- a/base/applications/notepad/lang/bg-BG.rc
+++ b/base/applications/notepad/lang/bg-BG.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Файл"
BEGIN
MENUITEM "&Нов\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Отваряне\tCtrl+O", CMD_OPEN
MENUITEM "&Запис\tCtrl+S", CMD_SAVE
MENUITEM "Запис &като...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/cs-CZ.rc
b/base/applications/notepad/lang/cs-CZ.rc
index 6cb85e4ab33..ab50a72b33a 100644
--- a/base/applications/notepad/lang/cs-CZ.rc
+++ b/base/applications/notepad/lang/cs-CZ.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Soubor"
BEGIN
MENUITEM "&Nový\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Otevřít\tCtrl+O", CMD_OPEN
MENUITEM "&Uložit\tCtrl+S", CMD_SAVE
MENUITEM "Uložit j&ako...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/da-DK.rc
b/base/applications/notepad/lang/da-DK.rc
index 0c9354b15e0..009232fe32a 100644
--- a/base/applications/notepad/lang/da-DK.rc
+++ b/base/applications/notepad/lang/da-DK.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Fil"
BEGIN
MENUITEM "&Ny\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "Å&bn...\tCtrl+O", CMD_OPEN
MENUITEM "&Gem\tCtrl+S", CMD_SAVE
MENUITEM "Gem so&m...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/de-DE.rc
b/base/applications/notepad/lang/de-DE.rc
index 868ee87f970..4ac8cd43173 100644
--- a/base/applications/notepad/lang/de-DE.rc
+++ b/base/applications/notepad/lang/de-DE.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Datei"
BEGIN
MENUITEM "&Neu\tStrg+N", CMD_NEW
+ MENUITEM "&Neues Fenster\tStrg+Umschalt+N", CMD_NEW_WINDOW
MENUITEM "Ö&ffnen\tStrg+O", CMD_OPEN
MENUITEM "&Speichern\tStrg+S", CMD_SAVE
MENUITEM "Speichern &unter...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/el-GR.rc
b/base/applications/notepad/lang/el-GR.rc
index 936cc78bc2f..8570a067ccc 100644
--- a/base/applications/notepad/lang/el-GR.rc
+++ b/base/applications/notepad/lang/el-GR.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Αρχείο"
BEGIN
MENUITEM "&Νέο\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Άνοιγμα\tCtrl+O", CMD_OPEN
MENUITEM "Αποθήκευ&ση\tCtrl+S", CMD_SAVE
MENUITEM "Αποθήκευση &ως...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/en-US.rc
b/base/applications/notepad/lang/en-US.rc
index 440aa98dc93..e51132777e9 100644
--- a/base/applications/notepad/lang/en-US.rc
+++ b/base/applications/notepad/lang/en-US.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Open...\tCtrl+O", CMD_OPEN
MENUITEM "&Save\tCtrl+S", CMD_SAVE
MENUITEM "Save &As...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/es-ES.rc
b/base/applications/notepad/lang/es-ES.rc
index f04c9de272e..c614cc08880 100644
--- a/base/applications/notepad/lang/es-ES.rc
+++ b/base/applications/notepad/lang/es-ES.rc
@@ -10,6 +10,7 @@ BEGIN
"^T", CMD_GOTO
"^R", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^A", CMD_OPEN
"^P", CMD_PRINT
"^G", CMD_SAVE
@@ -25,6 +26,7 @@ BEGIN
POPUP "&Archivo"
BEGIN
MENUITEM "&Nuevo\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Abrir\tCtrl+A", CMD_OPEN
MENUITEM "&Guardar\tCtrl+G", CMD_SAVE
MENUITEM "Guardar &como...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/et-EE.rc
b/base/applications/notepad/lang/et-EE.rc
index 3ee99c3f6c6..0938330ec9f 100644
--- a/base/applications/notepad/lang/et-EE.rc
+++ b/base/applications/notepad/lang/et-EE.rc
@@ -16,6 +16,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -31,6 +32,7 @@ BEGIN
POPUP "&Fail"
BEGIN
MENUITEM "&Uus\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Ava...\tCtrl+O", CMD_OPEN
MENUITEM "&Salvesta\tCtrl+S", CMD_SAVE
MENUITEM "Salvesta &nimega...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/eu-ES.rc
b/base/applications/notepad/lang/eu-ES.rc
index 52a97c5b265..81bb93e9494 100644
--- a/base/applications/notepad/lang/eu-ES.rc
+++ b/base/applications/notepad/lang/eu-ES.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Fitxategia"
BEGIN
MENUITEM "&Berria\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Ireki\tCtrl+O", CMD_OPEN
MENUITEM "&Gorde\tCtrl+S", CMD_SAVE
MENUITEM "Gorde &honela...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/fi-FI.rc
b/base/applications/notepad/lang/fi-FI.rc
index f4ed7a58c19..2033db321f8 100644
--- a/base/applications/notepad/lang/fi-FI.rc
+++ b/base/applications/notepad/lang/fi-FI.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Tiedosto"
BEGIN
MENUITEM "&Uusi\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Avaa\tCtrl+O", CMD_OPEN
MENUITEM "Ta&lleta\tCtrl+S", CMD_SAVE
MENUITEM "Talleta &nimellä...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/fr-FR.rc
b/base/applications/notepad/lang/fr-FR.rc
index bcd6e371341..8a56fcca18b 100644
--- a/base/applications/notepad/lang/fr-FR.rc
+++ b/base/applications/notepad/lang/fr-FR.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Fichier"
BEGIN
MENUITEM "&Nouveau\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Ouvrir\tCtrl+O", CMD_OPEN
MENUITEM "&Enregistrer\tCtrl+S", CMD_SAVE
MENUITEM "Enregistrer &sous...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/he-IL.rc
b/base/applications/notepad/lang/he-IL.rc
index 1de08e94069..50d8259c281 100644
--- a/base/applications/notepad/lang/he-IL.rc
+++ b/base/applications/notepad/lang/he-IL.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&קובץ"
BEGIN
MENUITEM "&חדש\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&פתח...\tCtrl+O", CMD_OPEN
MENUITEM "&שמור\tCtrl+S", CMD_SAVE
MENUITEM "שמור &בשם...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/hi-IN.rc
b/base/applications/notepad/lang/hi-IN.rc
index 246b48b073a..52827ba1131 100644
--- a/base/applications/notepad/lang/hi-IN.rc
+++ b/base/applications/notepad/lang/hi-IN.rc
@@ -15,6 +15,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -30,6 +31,7 @@ BEGIN
POPUP "&फ़ाइल"
BEGIN
MENUITEM "&नया\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&खोलो...\tCtrl+O", CMD_OPEN
MENUITEM "&सेव\tCtrl+S", CMD_SAVE
MENUITEM "सेव &इज़...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/hu-HU.rc
b/base/applications/notepad/lang/hu-HU.rc
index 8c74eeaeb3b..7f3852255a4 100644
--- a/base/applications/notepad/lang/hu-HU.rc
+++ b/base/applications/notepad/lang/hu-HU.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Fájl"
BEGIN
MENUITEM "Ú&j\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "Meg&nyitás\tCtrl+O", CMD_OPEN
MENUITEM "&Mentés\tCtrl+S", CMD_SAVE
MENUITEM "Mentés má&sként...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/hy-AM.rc
b/base/applications/notepad/lang/hy-AM.rc
index 3bd24febf35..5e79d827911 100644
--- a/base/applications/notepad/lang/hy-AM.rc
+++ b/base/applications/notepad/lang/hy-AM.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Ֆայլ"
BEGIN
MENUITEM "&Ստեղծել\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Բացել...\tCtrl+O", CMD_OPEN
MENUITEM "&Պահպանել\tCtrl+S", CMD_SAVE
MENUITEM "Պահպանել &ինչպես...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/id-ID.rc
b/base/applications/notepad/lang/id-ID.rc
index fa16cfaf6f3..442fbdea098 100644
--- a/base/applications/notepad/lang/id-ID.rc
+++ b/base/applications/notepad/lang/id-ID.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "Be&rkas"
BEGIN
MENUITEM "Bar&u\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Buka\tCtrl+O", CMD_OPEN
MENUITEM "&Simpan\tCtrl+S", CMD_SAVE
MENUITEM "Simpan seb&agai...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/it-IT.rc
b/base/applications/notepad/lang/it-IT.rc
index 71971795285..41a51035065 100644
--- a/base/applications/notepad/lang/it-IT.rc
+++ b/base/applications/notepad/lang/it-IT.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Nuovo\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Apri...\tCtrl+O", CMD_OPEN
MENUITEM "&Salva\tCtrl+S", CMD_SAVE
MENUITEM "Sal&va con nome...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/ja-JP.rc
b/base/applications/notepad/lang/ja-JP.rc
index 6f68583bc2f..eeef56b5fd3 100644
--- a/base/applications/notepad/lang/ja-JP.rc
+++ b/base/applications/notepad/lang/ja-JP.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "ファイル(&F)"
BEGIN
MENUITEM "新規作成(&N)\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "開く(&O)...\tCtrl+O", CMD_OPEN
MENUITEM "上書き保存(&S)\tCtrl+S", CMD_SAVE
MENUITEM "名前を付けて保存(&A)...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/lt-LT.rc
b/base/applications/notepad/lang/lt-LT.rc
index 901993d9368..e0c688c536a 100644
--- a/base/applications/notepad/lang/lt-LT.rc
+++ b/base/applications/notepad/lang/lt-LT.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Byla"
BEGIN
MENUITEM "&Nauja\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Atverti...\tCtrl+O", CMD_OPEN
MENUITEM "Į&rašyti\tCtrl+S", CMD_SAVE
MENUITEM "Įrašyti &kaip...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/ms-MY.rc
b/base/applications/notepad/lang/ms-MY.rc
index 360a9bbc2dc..202489aec77 100644
--- a/base/applications/notepad/lang/ms-MY.rc
+++ b/base/applications/notepad/lang/ms-MY.rc
@@ -10,6 +10,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -25,6 +26,7 @@ BEGIN
POPUP "&Fail"
BEGIN
MENUITEM "Baru(&N)\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "Buka(&O)...\tCtrl+O", CMD_OPEN
MENUITEM "&Simpan\tCtrl+S", CMD_SAVE
MENUITEM "Simp&an sebagai...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/nl-NL.rc
b/base/applications/notepad/lang/nl-NL.rc
index 8fcfd937de9..f4f9fe31823 100644
--- a/base/applications/notepad/lang/nl-NL.rc
+++ b/base/applications/notepad/lang/nl-NL.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Bestand"
BEGIN
MENUITEM "&Nieuw\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Openen\tCtrl+O", CMD_OPEN
MENUITEM "O&pslaan\tCtrl+S", CMD_SAVE
MENUITEM "Ops&laan als...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/no-NO.rc
b/base/applications/notepad/lang/no-NO.rc
index 323e9203cb0..b1f53cf1f39 100644
--- a/base/applications/notepad/lang/no-NO.rc
+++ b/base/applications/notepad/lang/no-NO.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Fil"
BEGIN
MENUITEM "&Ny\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Åpne\tCtrl+O", CMD_OPEN
MENUITEM "&Lagre\tCtrl+S", CMD_SAVE
MENUITEM "Lagre &som...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/pl-PL.rc
b/base/applications/notepad/lang/pl-PL.rc
index db4265487ee..e9a47589fe3 100644
--- a/base/applications/notepad/lang/pl-PL.rc
+++ b/base/applications/notepad/lang/pl-PL.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Plik"
BEGIN
MENUITEM "&Nowy\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Otwórz...\tCtrl+O", CMD_OPEN
MENUITEM "Zapi&sz\tCtrl+S", CMD_SAVE
MENUITEM "Z&apisz jako...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/pt-BR.rc
b/base/applications/notepad/lang/pt-BR.rc
index 194a9911254..4c210601c1d 100644
--- a/base/applications/notepad/lang/pt-BR.rc
+++ b/base/applications/notepad/lang/pt-BR.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Arquivo"
BEGIN
MENUITEM "&Novo\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "A&brir\tCtrl+O", CMD_OPEN
MENUITEM "&Salvar\tCtrl+S", CMD_SAVE
MENUITEM "Salvar &como...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/pt-PT.rc
b/base/applications/notepad/lang/pt-PT.rc
index c1a7cd8ac45..09834442eb7 100644
--- a/base/applications/notepad/lang/pt-PT.rc
+++ b/base/applications/notepad/lang/pt-PT.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Arquivo"
BEGIN
MENUITEM "&Novo\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "A&brir\tCtrl+O", CMD_OPEN
MENUITEM "&Salvar\tCtrl+S", CMD_SAVE
MENUITEM "Salvar &como...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/ro-RO.rc
b/base/applications/notepad/lang/ro-RO.rc
index 6a496d83b1d..426b44dbd2a 100644
--- a/base/applications/notepad/lang/ro-RO.rc
+++ b/base/applications/notepad/lang/ro-RO.rc
@@ -13,6 +13,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -28,6 +29,7 @@ BEGIN
POPUP "&Fișier"
BEGIN
MENUITEM "&Nou\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Deschidere…\tCtrl+O", CMD_OPEN
MENUITEM "&Păstrează\tCtrl+S", CMD_SAVE
MENUITEM "Păst&rare în…", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/ru-RU.rc
b/base/applications/notepad/lang/ru-RU.rc
index 553c0b27d3e..95e7db8fa70 100644
--- a/base/applications/notepad/lang/ru-RU.rc
+++ b/base/applications/notepad/lang/ru-RU.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Файл"
BEGIN
MENUITEM "Созд&ать\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Открыть...\tCtrl+O", CMD_OPEN
MENUITEM "&Сохранить\tCtrl+S", CMD_SAVE
MENUITEM "Сохранить &как...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/sk-SK.rc
b/base/applications/notepad/lang/sk-SK.rc
index 6f61be3f393..1fa1ce5f5b8 100644
--- a/base/applications/notepad/lang/sk-SK.rc
+++ b/base/applications/notepad/lang/sk-SK.rc
@@ -16,6 +16,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -31,6 +32,7 @@ BEGIN
POPUP "&Súbor"
BEGIN
MENUITEM "&Nový\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Otvoriť...\tCtrl+O", CMD_OPEN
MENUITEM "&Uložiť\tCtrl+S", CMD_SAVE
MENUITEM "Uložiť &ako...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/sl-SI.rc
b/base/applications/notepad/lang/sl-SI.rc
index e21086fb860..3a81d3b5fdd 100644
--- a/base/applications/notepad/lang/sl-SI.rc
+++ b/base/applications/notepad/lang/sl-SI.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Datoteka"
BEGIN
MENUITEM "&Nova\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Odpri\tCtrl+O", CMD_OPEN
MENUITEM "&Shrani\tCtrl+S", CMD_SAVE
MENUITEM "Shrani &kot ...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/sq-AL.rc
b/base/applications/notepad/lang/sq-AL.rc
index 99af7828ab5..349668b9aa9 100644
--- a/base/applications/notepad/lang/sq-AL.rc
+++ b/base/applications/notepad/lang/sq-AL.rc
@@ -12,6 +12,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -27,6 +28,7 @@ BEGIN
POPUP "&File"
BEGIN
MENUITEM "E Re\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "Hap...\tCtrl+O", CMD_OPEN
MENUITEM "Ruaj\tCtrl+S", CMD_SAVE
MENUITEM "Ruaj si...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/sv-SE.rc
b/base/applications/notepad/lang/sv-SE.rc
index 5cd6052fc40..d52303805db 100644
--- a/base/applications/notepad/lang/sv-SE.rc
+++ b/base/applications/notepad/lang/sv-SE.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Arkiv"
BEGIN
MENUITEM "&Ny\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Öppna\tCtrl+O", CMD_OPEN
MENUITEM "&Spara\tCtrl+S", CMD_SAVE
MENUITEM "Spara so&m...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/th-TH.rc
b/base/applications/notepad/lang/th-TH.rc
index 4a8ee16bebd..156ab1d5f3c 100644
--- a/base/applications/notepad/lang/th-TH.rc
+++ b/base/applications/notepad/lang/th-TH.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "แฟ้ม"
BEGIN
MENUITEM "สร้างใหม่\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "เปิด...\tCtrl+O", CMD_OPEN
MENUITEM "บันทืก\tCtrl+S", CMD_SAVE
MENUITEM "บันทืกเป็น...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/tr-TR.rc
b/base/applications/notepad/lang/tr-TR.rc
index 69c3a973e14..64b4616bbaf 100644
--- a/base/applications/notepad/lang/tr-TR.rc
+++ b/base/applications/notepad/lang/tr-TR.rc
@@ -11,6 +11,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -26,6 +27,7 @@ BEGIN
POPUP "&Dosya"
BEGIN
MENUITEM "&Yeni\tDenetim+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Aç...\tDenetim+O", CMD_OPEN
MENUITEM "&Kaydet\tDenetim+S", CMD_SAVE
MENUITEM "&Farklı Kaydet...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/uk-UA.rc
b/base/applications/notepad/lang/uk-UA.rc
index c249c64a998..bc33367221e 100644
--- a/base/applications/notepad/lang/uk-UA.rc
+++ b/base/applications/notepad/lang/uk-UA.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Файл"
BEGIN
MENUITEM "&Створити\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "&Відкрити...\tCtrl+O", CMD_OPEN
MENUITEM "&Зберегти\tCtrl+S", CMD_SAVE
MENUITEM "Зберегти &як...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/uz-UZ.rc
b/base/applications/notepad/lang/uz-UZ.rc
index 9c5753a04c0..fdc61df2fd7 100644
--- a/base/applications/notepad/lang/uz-UZ.rc
+++ b/base/applications/notepad/lang/uz-UZ.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "&Fayl"
BEGIN
MENUITEM "&Yangi\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "Oc&hmoq...\tCtrl+O", CMD_OPEN
MENUITEM "&Saqlamoq\tCtrl+S", CMD_SAVE
MENUITEM "Quyid&agicha saqlamoq...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/zh-CN.rc
b/base/applications/notepad/lang/zh-CN.rc
index ae9ac1eb1ea..1d459218519 100644
--- a/base/applications/notepad/lang/zh-CN.rc
+++ b/base/applications/notepad/lang/zh-CN.rc
@@ -10,6 +10,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -25,6 +26,7 @@ BEGIN
POPUP "文件(&F)"
BEGIN
MENUITEM "新建(&N)\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "打开(&O)...\tCtrl+O", CMD_OPEN
MENUITEM "保存(&S)\tCtrl+S", CMD_SAVE
MENUITEM "另存为(&A)...", CMD_SAVE_AS
diff --git a/base/applications/notepad/lang/zh-TW.rc
b/base/applications/notepad/lang/zh-TW.rc
index 5a4c45d581b..30e7cfe4063 100644
--- a/base/applications/notepad/lang/zh-TW.rc
+++ b/base/applications/notepad/lang/zh-TW.rc
@@ -8,6 +8,7 @@ BEGIN
"^G", CMD_GOTO
"H", CMD_REPLACE, VIRTKEY, CONTROL
"^N", CMD_NEW
+ "N", CMD_NEW_WINDOW, VIRTKEY,CONTROL , SHIFT
"^O", CMD_OPEN
"^P", CMD_PRINT
"^S", CMD_SAVE
@@ -23,6 +24,7 @@ BEGIN
POPUP "檔案(&F)"
BEGIN
MENUITEM "開新檔案(&N)\tCtrl+N", CMD_NEW
+ MENUITEM "&New Window\tCtrl+Shift+N", CMD_NEW_WINDOW
MENUITEM "開啟舊檔(&O)...\tCtrl+O", CMD_OPEN
MENUITEM "儲存檔案(&S)\tCtrl+S", CMD_SAVE
MENUITEM "另存新檔(&A)...", CMD_SAVE_AS
diff --git a/base/applications/notepad/main.c b/base/applications/notepad/main.c
index dee27770697..b31d0c0fcb3 100644
--- a/base/applications/notepad/main.c
+++ b/base/applications/notepad/main.c
@@ -66,6 +66,7 @@ static int NOTEPAD_MenuCommand(WPARAM wParam)
switch (wParam)
{
case CMD_NEW: DIALOG_FileNew(); break;
+ case CMD_NEW_WINDOW: DIALOG_FileNewWindow(); break;
case CMD_OPEN: DIALOG_FileOpen(); break;
case CMD_SAVE: DIALOG_FileSave(); break;
case CMD_SAVE_AS: DIALOG_FileSaveAs(); break;
diff --git a/base/applications/notepad/notepad_res.h
b/base/applications/notepad/notepad_res.h
index 9fa9817e44a..b53ff22cb57 100644
--- a/base/applications/notepad/notepad_res.h
+++ b/base/applications/notepad/notepad_res.h
@@ -34,11 +34,12 @@
/* Commands */
#define CMD_NEW 0x100
-#define CMD_OPEN 0x101
-#define CMD_SAVE 0x102
-#define CMD_SAVE_AS 0x103
-#define CMD_PRINT 0x104
-#define CMD_PAGE_SETUP 0x105
+#define CMD_NEW_WINDOW 0x101
+#define CMD_OPEN 0x102
+#define CMD_SAVE 0x103
+#define CMD_SAVE_AS 0x104
+#define CMD_PRINT 0x105
+#define CMD_PAGE_SETUP 0x106
#define CMD_EXIT 0x108
#define CMD_UNDO 0x110