Commit 04aefe86 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

wordpad: Refer to main menu using IDM_MAINMENU.

parent 6753fdc3
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Datei" POPUP "&Datei"
BEGIN BEGIN
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&File" POPUP "&File"
BEGIN BEGIN
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Fichier" POPUP "&Fichier"
BEGIN BEGIN
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Fjl" POPUP "&Fjl"
BEGIN BEGIN
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
LANGUAGE LANG_KOREAN, SUBLANG_NEUTRAL LANGUAGE LANG_KOREAN, SUBLANG_NEUTRAL
MAINMENU MENU DISCARDABLE
IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "파일(&F)" POPUP "파일(&F)"
BEGIN BEGIN
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Bestand" POPUP "&Bestand"
BEGIN BEGIN
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Fil" POPUP "&Fil"
BEGIN BEGIN
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Plik" POPUP "&Plik"
BEGIN BEGIN
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&" POPUP "&"
BEGIN BEGIN
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
MAINMENU MENU DISCARDABLE IDM_MAINMENU MENU DISCARDABLE
BEGIN BEGIN
POPUP "&Dosya" POPUP "&Dosya"
BEGIN BEGIN
......
...@@ -138,7 +138,8 @@ ...@@ -138,7 +138,8 @@
#define IDD_TABSTOPS 2103 #define IDD_TABSTOPS 2103
#define IDD_FORMATOPTS 2104 #define IDD_FORMATOPTS 2104
#define IDM_POPUP 2200 #define IDM_MAINMENU 2200
#define IDM_POPUP 2201
#define IDB_TOOLBAR 100 #define IDB_TOOLBAR 100
#define IDB_FORMATBAR 101 #define IDB_FORMATBAR 101
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
/* use LoadString */ /* use LoadString */
static const WCHAR xszAppTitle[] = {'W','i','n','e',' ','W','o','r','d','p','a','d',0}; static const WCHAR xszAppTitle[] = {'W','i','n','e',' ','W','o','r','d','p','a','d',0};
static const WCHAR xszMainMenu[] = {'M','A','I','N','M','E','N','U',0};
static const WCHAR wszRichEditClass[] = {'R','I','C','H','E','D','I','T','2','0','W',0}; static const WCHAR wszRichEditClass[] = {'R','I','C','H','E','D','I','T','2','0','W',0};
static const WCHAR wszMainWndClass[] = {'W','O','R','D','P','A','D','T','O','P',0}; static const WCHAR wszMainWndClass[] = {'W','O','R','D','P','A','D','T','O','P',0};
...@@ -1528,7 +1527,7 @@ static void preview_bar_show(BOOL show) ...@@ -1528,7 +1527,7 @@ static void preview_bar_show(BOOL show)
static void preview_exit(void) static void preview_exit(void)
{ {
HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hMainWnd, GWLP_HINSTANCE); HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hMainWnd, GWLP_HINSTANCE);
HMENU hMenu = LoadMenuW(hInstance, xszMainMenu); HMENU hMenu = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDM_MAINMENU));
set_bar_states(); set_bar_states();
preview.window.right = 0; preview.window.right = 0;
...@@ -3261,7 +3260,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar ...@@ -3261,7 +3260,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
wc.hIcon = LoadIconW(hInstance, MAKEINTRESOURCEW(IDI_WORDPAD)); wc.hIcon = LoadIconW(hInstance, MAKEINTRESOURCEW(IDI_WORDPAD));
wc.hCursor = LoadCursor(NULL, IDC_IBEAM); wc.hCursor = LoadCursor(NULL, IDC_IBEAM);
wc.hbrBackground = GetSysColorBrush(COLOR_WINDOW); wc.hbrBackground = GetSysColorBrush(COLOR_WINDOW);
wc.lpszMenuName = xszMainMenu; wc.lpszMenuName = MAKEINTRESOURCEW(IDM_MAINMENU);
wc.lpszClassName = wszMainWndClass; wc.lpszClassName = wszMainWndClass;
RegisterClassW(&wc); RegisterClassW(&wc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment