ReactOS 0.4.15-dev-7906-g1b85a5f
string.c
Go to the documentation of this file.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22/*
23 * PROJECT: ReactOS Program Manager
24 * COPYRIGHT: GPL - See COPYING in the top level directory
25 * FILE: base/shell/progman/string.c
26 * PURPOSE: String utility functions
27 * PROGRAMMERS: Ulrich Schmid
28 * Sylvain Petreolle
29 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
30 */
31
32#include "progman.h"
33
34WCHAR szTitle[256]; // MAX_STRING_LEN ?
35
37{
39}
40
42{
44
45 /* Create the menu */
47 Globals.hFileMenu = GetSubMenu(hMainMenu, 0);
48 Globals.hOptionMenu = GetSubMenu(hMainMenu, 1);
49 Globals.hWindowsMenu = GetSubMenu(hMainMenu, 2);
50 Globals.hLanguageMenu = GetSubMenu(hMainMenu, 3);
51
52 if (Globals.hMDIWnd)
54 else
56
57 /* Destroy the old menu */
58 if (Globals.hMainMenu)
59 DestroyMenu(Globals.hMainMenu);
60 Globals.hMainMenu = hMainMenu;
61}
#define MAIN_MENU
Definition: resources.h:12
#define IDS_PROGRAM_MANAGER
Definition: resource.h:50
WCHAR szTitle[256]
Definition: string.c:34
VOID STRING_LoadStrings(VOID)
Definition: string.c:36
VOID STRING_LoadMenus(VOID)
Definition: string.c:41
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
#define ARRAYSIZE(array)
Definition: filtermapper.c:47
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
HMENU hMainMenu
Definition: mplay32.c:25
HINSTANCE hInstance
Definition: precomp.h:43
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define WM_MDISETMENU
Definition: winuser.h:1822
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DestroyMenu(_In_ HMENU)
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
__wchar_t WCHAR
Definition: xmlstorage.h:180