[NOTEPAD] Implement File->New Window

*Windows starts a new own's instance too, when clicking on "New Window" (Tested by @HBelusca)
This commit is contained in:
Robert Naumann 2021-02-11 22:04:36 +01:00
parent 61f4b120fc
commit b774ec5ca6
41 changed files with 89 additions and 5 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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;

View file

@ -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