wordpad: Add about window.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-08-23 15:05:40 +02:00 committed by Alexandre Julliard
parent 5bc0dfc28c
commit dfb29f4d15
12 changed files with 53 additions and 0 deletions

View File

@ -79,6 +79,10 @@ BEGIN
MENUITEM "&PostIt-Notiz\tCtrl+2", ID_BACK_2 MENUITEM "&PostIt-Notiz\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -79,6 +79,10 @@ BEGIN
MENUITEM "&PostThat yellowish\tCtrl+2", ID_BACK_2 MENUITEM "&PostThat yellowish\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -79,6 +79,10 @@ BEGIN
MENUITEM "&Jaunasse\tCtrl+2", ID_BACK_2 MENUITEM "&Jaunasse\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -79,6 +79,10 @@ BEGIN
MENUITEM "&Sárgában kérem\tCtrl+2", ID_BACK_2 MENUITEM "&Sárgában kérem\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -80,6 +80,10 @@ BEGIN
MENUITEM "노랑색으로(&P)\tCtrl+2", ID_BACK_2 MENUITEM "노랑색으로(&P)\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -79,6 +79,10 @@ BEGIN
MENUITEM "&Geeltje\tCtrl+2", ID_BACK_2 MENUITEM "&Geeltje\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -79,6 +79,10 @@ BEGIN
MENUITEM "Merkela&pp-gult\tCtrl+2", ID_BACK_2 MENUITEM "Merkela&pp-gult\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Hjelp"
BEGIN
MENUITEM "&Om Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -80,6 +80,10 @@ BEGIN
MENUITEM "&PostThat (¿ó³ty)\tCtrl+2", ID_BACK_2 MENUITEM "&PostThat (¿ó³ty)\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -78,6 +78,10 @@ BEGIN
MENUITEM "&Æåëòîâàòûé PostThat\tCtrl+2", ID_BACK_2 MENUITEM "&Æåëòîâàòûé PostThat\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -82,6 +82,10 @@ BEGIN
MENUITEM "&Sarýmtýrak\tCtrl+2", ID_BACK_2 MENUITEM "&Sarýmtýrak\tCtrl+2", ID_BACK_2
END END
END END
POPUP "&Help"
BEGIN
MENUITEM "&About Wine Wordpad" ID_ABOUT
END
END END
IDM_POPUP MENU DISCARDABLE IDM_POPUP MENU DISCARDABLE

View File

@ -85,6 +85,8 @@
#define ID_PARAFORMAT 1601 #define ID_PARAFORMAT 1601
#define ID_TABSTOPS 1602 #define ID_TABSTOPS 1602
#define ID_ABOUT 1603
#define IDC_STATUSBAR 2000 #define IDC_STATUSBAR 2000
#define IDC_EDITOR 2001 #define IDC_EDITOR 2001
#define IDC_TOOLBAR 2002 #define IDC_TOOLBAR 2002

View File

@ -1095,6 +1095,13 @@ static void dialog_print(void)
} }
} }
static void dialog_about(void)
{
HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hMainWnd, GWLP_HINSTANCE);
HICON icon = LoadIconW(hInstance, MAKEINTRESOURCEW(IDI_WORDPAD));
ShellAboutW(hMainWnd, wszAppTitle, 0, icon);
}
static void HandleCommandLine(LPWSTR cmdline) static void HandleCommandLine(LPWSTR cmdline)
{ {
WCHAR delimiter; WCHAR delimiter;
@ -2197,6 +2204,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
} }
break; break;
case ID_ABOUT:
dialog_about();
break;
default: default:
SendMessageW(hwndEditor, WM_COMMAND, wParam, lParam); SendMessageW(hwndEditor, WM_COMMAND, wParam, lParam);
break; break;