Stub implementations for SHUpdateImageA, SHHandleUpdateImage,
[wine/multimedia.git] / programs / progman / string.c
blobea0a8dcccd20181a8d4913aab2e7374252d1d3f0
1 /*
2 * Program Manager
4 * Copyright 1996 Ulrich Schmid
5 * Copyright 2002 Sylvain Petreolle
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.
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.
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
22 #include "windows.h"
23 #include "progman.h"
25 /* Class names */
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";
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";
46 VOID STRING_LoadMenus(VOID)
48 CHAR caption[MAX_STRING_LEN];
49 HMENU hMainMenu;
51 /* Set frame caption */
52 LoadString(Globals.hInstance, IDS_PROGRAM_MANAGER, caption, sizeof(caption));
53 SetWindowText(Globals.hMainWnd, caption);
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);
62 if (Globals.hMDIWnd)
63 SendMessage(Globals.hMDIWnd, WM_MDISETMENU,
64 (WPARAM) hMainMenu,
65 (LPARAM) Globals.hWindowsMenu);
66 else SetMenu(Globals.hMainWnd, hMainMenu);
68 /* Destroy old menu */
69 if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
70 Globals.hMainMenu = hMainMenu;
73 /* Local Variables: */
74 /* c-file-style: "GNU" */
75 /* End: */