wordpad: Add about window.
This commit is contained in:
parent
5bc0dfc28c
commit
dfb29f4d15
|
@ -79,6 +79,10 @@ BEGIN
|
|||
MENUITEM "&PostIt-Notiz\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -79,6 +79,10 @@ BEGIN
|
|||
MENUITEM "&PostThat yellowish\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -79,6 +79,10 @@ BEGIN
|
|||
MENUITEM "&Jaunasse\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -79,6 +79,10 @@ BEGIN
|
|||
MENUITEM "&Sárgában kérem\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -80,6 +80,10 @@ BEGIN
|
|||
MENUITEM "노랑색으로(&P)\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -79,6 +79,10 @@ BEGIN
|
|||
MENUITEM "&Geeltje\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -79,6 +79,10 @@ BEGIN
|
|||
MENUITEM "Merkela&pp-gult\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Hjelp"
|
||||
BEGIN
|
||||
MENUITEM "&Om Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -80,6 +80,10 @@ BEGIN
|
|||
MENUITEM "&PostThat (¿ó³ty)\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -78,6 +78,10 @@ BEGIN
|
|||
MENUITEM "&Æåëòîâàòûé PostThat\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -82,6 +82,10 @@ BEGIN
|
|||
MENUITEM "&Sarýmtýrak\tCtrl+2", ID_BACK_2
|
||||
END
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDM_POPUP MENU DISCARDABLE
|
||||
|
|
|
@ -85,6 +85,8 @@
|
|||
#define ID_PARAFORMAT 1601
|
||||
#define ID_TABSTOPS 1602
|
||||
|
||||
#define ID_ABOUT 1603
|
||||
|
||||
#define IDC_STATUSBAR 2000
|
||||
#define IDC_EDITOR 2001
|
||||
#define IDC_TOOLBAR 2002
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
WCHAR delimiter;
|
||||
|
@ -2197,6 +2204,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
break;
|
||||
|
||||
case ID_ABOUT:
|
||||
dialog_about();
|
||||
break;
|
||||
|
||||
default:
|
||||
SendMessageW(hwndEditor, WM_COMMAND, wParam, lParam);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue