~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/programs/progman/string.c

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  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 #define WIN32_LEAN_AND_MEAN
 23 
 24 #include "windows.h"
 25 #include "progman.h"
 26 
 27 /* Class names */
 28 
 29 CHAR STRING_MAIN_WIN_CLASS_NAME[]    = "PMMain";
 30 CHAR STRING_MDI_WIN_CLASS_NAME[]     = "MDICLIENT";
 31 CHAR STRING_GROUP_WIN_CLASS_NAME[]   = "PMGroup";
 32 CHAR STRING_PROGRAM_WIN_CLASS_NAME[] = "PMProgram";
 33 
 34 /* Resource names */
 35 CHAR STRING_ACCEL[]      = "ACCEL";
 36 CHAR STRING_MENU[]    = "MENU";
 37 CHAR STRING_NEW[]     = "DIALOG_NEW";
 38 CHAR STRING_OPEN[]    = "DIALOG_OPEN";
 39 CHAR STRING_MOVE[]    = "DIALOG_MOVE";
 40 CHAR STRING_COPY[]    = "DIALOG_COPY";
 41 CHAR STRING_DELETE[]  = "DIALOG_DELETE";
 42 CHAR STRING_GROUP[]   = "DIALOG_GROUP";
 43 CHAR STRING_PROGRAM[] = "DIALOG_PROGRAM";
 44 CHAR STRING_SYMBOL[]  = "DIALOG_SYMBOL";
 45 CHAR STRING_EXECUTE[] = "DIALOG_EXECUTE";
 46 
 47 
 48 VOID STRING_LoadMenus(VOID)
 49 {
 50   CHAR   caption[MAX_STRING_LEN];
 51   HMENU  hMainMenu;
 52 
 53   /* Set frame caption */
 54   LoadString(Globals.hInstance, IDS_PROGRAM_MANAGER, caption, sizeof(caption));
 55   SetWindowText(Globals.hMainWnd, caption);
 56 
 57   /* Create menu */
 58   hMainMenu = LoadMenu(Globals.hInstance, MAKEINTRESOURCE(MAIN_MENU));
 59   Globals.hFileMenu     = GetSubMenu(hMainMenu, 0);
 60   Globals.hOptionMenu   = GetSubMenu(hMainMenu, 1);
 61   Globals.hWindowsMenu  = GetSubMenu(hMainMenu, 2);
 62   Globals.hLanguageMenu = GetSubMenu(hMainMenu, 3);
 63 
 64   if (Globals.hMDIWnd)
 65     SendMessage(Globals.hMDIWnd, WM_MDISETMENU,
 66                 (WPARAM) hMainMenu,
 67                 (LPARAM) Globals.hWindowsMenu);
 68   else SetMenu(Globals.hMainWnd, hMainMenu);
 69 
 70   /* Destroy old menu */
 71   if (Globals.hMainMenu) DestroyMenu(Globals.hMainMenu);
 72   Globals.hMainMenu = hMainMenu;
 73 }
 74 
 75 /* Local Variables:    */
 76 /* c-file-style: "GNU" */
 77 /* End:                */
 78 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.