d3dcompiler: Don't allow semantics on void functions.
[wine/multimedia.git] / programs / progman / string.c
blobfb27b54a55cc6fce376cb015f36f59a68aceaadc
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define WIN32_LEAN_AND_MEAN
24 #include "windows.h"
25 #include "progman.h"
27 /* Class names */
29 WCHAR STRING_MAIN_WIN_CLASS_NAME[] = {'P','M','M','a','i','n',0};
30 WCHAR STRING_MDI_WIN_CLASS_NAME[] = {'M','D','I','C','L','I','E','N','T',0};
31 WCHAR STRING_GROUP_WIN_CLASS_NAME[] = {'P','M','G','r','o','u','p',0};
32 WCHAR STRING_PROGRAM_WIN_CLASS_NAME[] = {'P','M','P','r','o','g','r','a','m',0};
34 VOID STRING_LoadMenus(VOID)
36 CHAR caption[MAX_STRING_LEN];
37 HMENU hMainMenu;
39 /* Set frame caption */
40 LoadStringA(Globals.hInstance, IDS_PROGRAM_MANAGER, caption, sizeof(caption));
41 SetWindowTextA(Globals.hMainWnd, caption);
43 /* Create menu */
44 hMainMenu = LoadMenuW(Globals.hInstance, MAKEINTRESOURCEW(MAIN_MENU));
45 Globals.hFileMenu = GetSubMenu(hMainMenu, 0);
46 Globals.hOptionMenu = GetSubMenu(hMainMenu, 1);
47 Globals.hWindowsMenu = GetSubMenu(hMainMenu, 2);
48 Globals.hLanguageMenu = GetSubMenu(hMainMenu, 3);
50 if (Globals.hMDIWnd)
51 SendMessageW(Globals.hMDIWnd, WM_MDISETMENU,
52 (WPARAM) hMainMenu,
53 (LPARAM) Globals.hWindowsMenu);
54 else SetMenu(Globals.hMainWnd, hMainMenu);
56 /* Destroy old menu */
57 if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
58 Globals.hMainMenu = hMainMenu;