Don't use utf8 in rc files.
[wine] / programs / progman / string.c
1 /*
2  * Program Manager
3  *
4  * Copyright 1996 Ulrich Schmid
5  * Copyright 2002 Sylvain Petreolle
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #include "windows.h"
23 #include "progman.h"
24
25 /* Class names */
26
27 CHAR STRING_MAIN_WIN_CLASS_NAME[]    = "PMMain";
28 CHAR STRING_MDI_WIN_CLASS_NAME[]     = "MDICLIENT";
29 CHAR STRING_GROUP_WIN_CLASS_NAME[]   = "PMGroup";
30 CHAR STRING_PROGRAM_WIN_CLASS_NAME[] = "PMProgram";
31
32 /* Resource names */
33 CHAR STRING_ACCEL[]      = "ACCEL";
34 CHAR STRING_MENU[]    = "MENU";
35 CHAR STRING_NEW[]     = "DIALOG_NEW";
36 CHAR STRING_OPEN[]    = "DIALOG_OPEN";
37 CHAR STRING_MOVE[]    = "DIALOG_MOVE";
38 CHAR STRING_COPY[]    = "DIALOG_COPY";
39 CHAR STRING_DELETE[]  = "DIALOG_DELETE";
40 CHAR STRING_GROUP[]   = "DIALOG_GROUP";
41 CHAR STRING_PROGRAM[] = "DIALOG_PROGRAM";
42 CHAR STRING_SYMBOL[]  = "DIALOG_SYMBOL";
43 CHAR STRING_EXECUTE[] = "DIALOG_EXECUTE";
44
45
46 VOID STRING_LoadMenus(VOID)
47 {
48   CHAR   caption[MAX_STRING_LEN];
49   HMENU  hMainMenu;
50
51   /* Set frame caption */
52   LoadString(Globals.hInstance, IDS_PROGRAM_MANAGER, caption, sizeof(caption));
53   SetWindowText(Globals.hMainWnd, caption);
54
55   /* Create menu */
56   hMainMenu = LoadMenu(Globals.hInstance, MAKEINTRESOURCE(MAIN_MENU));
57   Globals.hFileMenu     = GetSubMenu(hMainMenu, 0);
58   Globals.hOptionMenu   = GetSubMenu(hMainMenu, 1);
59   Globals.hWindowsMenu  = GetSubMenu(hMainMenu, 2);
60   Globals.hLanguageMenu = GetSubMenu(hMainMenu, 3);
61
62   if (Globals.hMDIWnd)
63     SendMessage(Globals.hMDIWnd, WM_MDISETMENU,
64                 (WPARAM) hMainMenu,
65                 (LPARAM) Globals.hWindowsMenu);
66   else SetMenu(Globals.hMainWnd, hMainMenu);
67
68   /* Destroy old menu */
69   if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
70   Globals.hMainMenu = hMainMenu;
71 }
72
73 /* Local Variables:    */
74 /* c-file-style: "GNU" */
75 /* End:                */