ReactOS  0.4.15-dev-499-g1f31905
string.c File Reference
#include "progman.h"
Include dependency graph for string.c:

Go to the source code of this file.

Functions

VOID STRING_LoadStrings (VOID)
 
VOID STRING_LoadMenus (VOID)
 

Variables

WCHAR szTitle [256]
 

Function Documentation

◆ STRING_LoadMenus()

VOID STRING_LoadMenus ( VOID  )

Definition at line 41 of file string.c.

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)
53  SendMessageW(Globals.hMDIWnd, WM_MDISETMENU, (WPARAM)hMainMenu, (LPARAM)Globals.hWindowsMenu);
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
UINT_PTR WPARAM
Definition: windef.h:207
#define WM_MDISETMENU
Definition: winuser.h:1804
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
HMENU hMainMenu
Definition: mplay32.c:25
LONG_PTR LPARAM
Definition: windef.h:208
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DestroyMenu(_In_ HMENU)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
HINSTANCE hInstance
Definition: precomp.h:43
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60

Referenced by wWinMain().

◆ STRING_LoadStrings()

VOID STRING_LoadStrings ( VOID  )

Definition at line 36 of file string.c.

37 {
39 }
#define ARRAYSIZE(array)
Definition: filtermapper.c:47
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
WCHAR szTitle[256]
Definition: string.c:34
#define IDS_PROGRAM_MANAGER
Definition: resource.h:50
HINSTANCE hInstance
Definition: precomp.h:43

Referenced by wWinMain().

Variable Documentation

◆ szTitle

WCHAR szTitle[256]

Definition at line 34 of file string.c.

Referenced by STRING_LoadStrings().