wordpad: Make edit menu more like native.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-02-25 14:39:58 +01:00 committed by Alexandre Julliard
parent a53eab603d
commit 194c3f2524
10 changed files with 39 additions and 18 deletions

View File

@ -32,10 +32,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Rückgängig\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Rückgängig\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Wiederholen\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Wiederholen\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Alles markieren\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Aus&schneiden\tCtrl+X", ID_EDIT_CUT MENUITEM "Aus&schneiden\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Kopieren\tCtrl+C", ID_EDIT_COPY MENUITEM "&Kopieren\tCtrl+C", ID_EDIT_COPY
MENUITEM "&Einfügen\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Löschen\tDEL", ID_EDIT_CLEAR
MENUITEM "&Alles markieren\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Schreibgeschü&tzt", ID_EDIT_READONLY MENUITEM "Schreibgeschü&tzt", ID_EDIT_READONLY
MENUITEM "&Geändert", ID_EDIT_MODIFIED MENUITEM "&Geändert", ID_EDIT_MODIFIED

View File

@ -32,10 +32,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Undo\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Undo\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Redo\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Redo\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Select all\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", ID_EDIT_CUT MENUITEM "Cu&t\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Copy\tCtrl+C", ID_EDIT_COPY MENUITEM "&Copy\tCtrl+C", ID_EDIT_COPY
MENUITEM "&Paste\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Clear\tDEL", ID_EDIT_CLEAR
MENUITEM "&Select all\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Read-&only", ID_EDIT_READONLY MENUITEM "Read-&only", ID_EDIT_READONLY
MENUITEM "&Modified", ID_EDIT_MODIFIED MENUITEM "&Modified", ID_EDIT_MODIFIED

View File

@ -32,10 +32,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Annuler\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Annuler\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Répéter\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Répéter\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Sélectionner tout\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "&Couper\tCtrl+X", ID_EDIT_CUT MENUITEM "&Couper\tCtrl+X", ID_EDIT_CUT
MENUITEM "Co&pier\tCtrl+C", ID_EDIT_COPY MENUITEM "Co&pier\tCtrl+C", ID_EDIT_COPY
MENUITEM "C&oller\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Effacer\tDel", ID_EDIT_CLEAR
MENUITEM "&Sélectionner tout\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Lecture-&seule", ID_EDIT_READONLY MENUITEM "Lecture-&seule", ID_EDIT_READONLY
MENUITEM "&Modifié", ID_EDIT_MODIFIED MENUITEM "&Modifié", ID_EDIT_MODIFIED

View File

@ -32,10 +32,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Visszavonás\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Visszavonás\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Elõre\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Elõre\tCtrl+Y", ID_EDIT_REDO
MENUITEM "M&indet kijelöli\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Kiv&ágás\tCtrl+X", ID_EDIT_CUT MENUITEM "Kiv&ágás\tCtrl+X", ID_EDIT_CUT
MENUITEM "Má&solás\tCtrl+C", ID_EDIT_COPY MENUITEM "Má&solás\tCtrl+C", ID_EDIT_COPY
MENUITEM "&Beillesztés\tCtrl+V", ID_EDIT_PASTE
MENUITEM "Tör&lés\tDel", ID_EDIT_CLEAR
MENUITEM "M&indet kijelöli\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Csak &olvasható", ID_EDIT_READONLY MENUITEM "Csak &olvasható", ID_EDIT_READONLY
MENUITEM "Mó&dosítva", ID_EDIT_MODIFIED MENUITEM "Mó&dosítva", ID_EDIT_MODIFIED

View File

@ -32,10 +32,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Ongedaan maken\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Ongedaan maken\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "O&pnieuw\tCtrl+Y", ID_EDIT_REDO MENUITEM "O&pnieuw\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Alles selecteren\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "K&nippen\tCtrl+X", ID_EDIT_CUT MENUITEM "K&nippen\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Kopieren\tCtrl+C", ID_EDIT_COPY MENUITEM "&Kopieren\tCtrl+C", ID_EDIT_COPY
MENUITEM "&Plakken\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Verwijderen\tDel", ID_EDIT_CLEAR
MENUITEM "&Alles selecteren\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Alleen &lezen", ID_EDIT_READONLY MENUITEM "Alleen &lezen", ID_EDIT_READONLY
MENUITEM "&Gewijzigd", ID_EDIT_MODIFIED MENUITEM "&Gewijzigd", ID_EDIT_MODIFIED

View File

@ -32,10 +32,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Angre\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Angre\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Gjenta\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Gjenta\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Merk alt\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Klipp u&t\tCtrl+X", ID_EDIT_CUT MENUITEM "Klipp u&t\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Kopier\tCtrl+C", ID_EDIT_COPY MENUITEM "&Kopier\tCtrl+C", ID_EDIT_COPY
MENUITEM "&Lim inn\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Fjern\tDEL", ID_EDIT_CLEAR
MENUITEM "&Merk alt\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "&Skrivebeskyttet", ID_EDIT_READONLY MENUITEM "&Skrivebeskyttet", ID_EDIT_READONLY
MENUITEM "E&ndret", ID_EDIT_MODIFIED MENUITEM "E&ndret", ID_EDIT_MODIFIED

View File

@ -33,10 +33,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Cofnij\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Cofnij\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Powtórz\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Powtórz\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Zaznacz wszystko\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Wy&tnij\tCtrl+X", ID_EDIT_CUT MENUITEM "Wy&tnij\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Kopiuj\tCtrl+C", ID_EDIT_COPY MENUITEM "&Kopiuj\tCtrl+C", ID_EDIT_COPY
MENUITEM "Wkl&ej\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Usuñ\tDel", ID_EDIT_CLEAR
MENUITEM "&Zaznacz wszystko\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Tylko do &odczytu", ID_EDIT_READONLY MENUITEM "Tylko do &odczytu", ID_EDIT_READONLY
MENUITEM "&Zmodifykowany", ID_EDIT_MODIFIED MENUITEM "&Zmodifykowany", ID_EDIT_MODIFIED

View File

@ -34,10 +34,12 @@ BEGIN
BEGIN BEGIN
MENUITEM "&Geri Al\tCtrl+Z", ID_EDIT_UNDO MENUITEM "&Geri Al\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Yinele\tCtrl+Y", ID_EDIT_REDO MENUITEM "&Yinele\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Tümünü seç\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Ke&s\tCtrl+X", ID_EDIT_CUT MENUITEM "Ke&s\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Kopyala\tCtrl+C", ID_EDIT_COPY MENUITEM "&Kopyala\tCtrl+C", ID_EDIT_COPY
MENUITEM "Ya&pýþtýr\tCtrl+V", ID_EDIT_PASTE
MENUITEM "&Sil\tDel", ID_EDIT_CLEAR
MENUITEM "&Tümünü seç\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Salt-&okunur", ID_EDIT_READONLY MENUITEM "Salt-&okunur", ID_EDIT_READONLY
MENUITEM "&Deðiþmiþ", ID_EDIT_MODIFIED MENUITEM "&Deðiþmiþ", ID_EDIT_MODIFIED

View File

@ -46,6 +46,7 @@
#define ID_EDIT_COPY 1310 #define ID_EDIT_COPY 1310
#define ID_EDIT_CUT 1311 #define ID_EDIT_CUT 1311
#define ID_EDIT_PASTE 1312 #define ID_EDIT_PASTE 1312
#define ID_EDIT_CLEAR 1313
#define ID_FORMAT_BOLD 1400 #define ID_FORMAT_BOLD 1400
#define ID_FORMAT_ITALIC 1401 #define ID_FORMAT_ITALIC 1401

View File

@ -377,6 +377,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
PostMessage(hwndEditor, WM_PASTE, 0, 0); PostMessage(hwndEditor, WM_PASTE, 0, 0);
break; break;
case ID_EDIT_CLEAR:
PostMessage(hwndEditor, WM_CLEAR, 0, 0);
break;
case ID_EDIT_SELECTALL: case ID_EDIT_SELECTALL:
{ {
CHARRANGE range = {0, -1}; CHARRANGE range = {0, -1};