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
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
29 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
34 WCHAR szTitle
[256]; // MAX_STRING_LEN ?
36 VOID
STRING_LoadStrings(VOID
)
38 LoadStringW(Globals
.hInstance
, IDS_PROGRAM_MANAGER
, szTitle
, ARRAYSIZE(szTitle
));
41 VOID
STRING_LoadMenus(VOID
)
46 hMainMenu
= LoadMenuW(Globals
.hInstance
, MAKEINTRESOURCEW(MAIN_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);
53 SendMessageW(Globals
.hMDIWnd
, WM_MDISETMENU
, (WPARAM
)hMainMenu
, (LPARAM
)Globals
.hWindowsMenu
);
55 SetMenu(Globals
.hMainWnd
, hMainMenu
);
57 /* Destroy the old menu */
58 if (Globals
.hMainMenu
)
59 DestroyMenu(Globals
.hMainMenu
);
60 Globals
.hMainMenu
= hMainMenu
;