Diff for /np2/win9x/menu.cpp between versions 1.20 and 1.21

version 1.20, 2005/02/09 20:11:35 version 1.21, 2005/03/20 13:12:49
Line 23  void menu_addmenubar(HMENU popup, HMENU  Line 23  void menu_addmenubar(HMENU popup, HMENU 
         UINT                    pos;          UINT                    pos;
         UINT                    i;          UINT                    i;
         MENUITEMINFO    mii;          MENUITEMINFO    mii;
         OEMCHAR                 str[128];          TCHAR                   str[128];
         HMENU                   hSubMenu;          HMENU                   hSubMenu;
   
         cnt = GetMenuItemCount(menubar);          cnt = GetMenuItemCount(menubar);
Line 50  void menu_addmenubar(HMENU popup, HMENU  Line 50  void menu_addmenubar(HMENU popup, HMENU 
 static void insertresmenu(HMENU menu, UINT pos, UINT flag,  static void insertresmenu(HMENU menu, UINT pos, UINT flag,
                                                                                                         UINT item, UINT str) {                                                                                                          UINT item, UINT str) {
   
         OEMCHAR tmp[128];          TCHAR   tmp[128];
   
         if (LoadString(hInst, str, tmp, NELEMENTS(tmp))) {          if (LoadString(hInst, str, tmp, NELEMENTS(tmp))) {
                 InsertMenu(menu, pos, flag, item, tmp);                  InsertMenu(menu, pos, flag, item, tmp);
Line 233  static const DISKMENU scsimenu[4] = { Line 233  static const DISKMENU scsimenu[4] = {
 #endif  #endif
   
 #if defined(SUPPORT_STATSAVE)  #if defined(SUPPORT_STATSAVE)
 static const OEMCHAR xmenu_stat[] = OEMTEXT("S&tat");  static const TCHAR xmenu_stat[] = _T("S&tat");
 static const OEMCHAR xmenu_statsave[] = OEMTEXT("Save %u");  static const TCHAR xmenu_statsave[] = _T("Save %u");
 static const OEMCHAR xmenu_statload[] = OEMTEXT("Load %u");  static const TCHAR xmenu_statload[] = _T("Load %u");
   
 static void addstatsavemenu(HMENU hMenu, UINT pos) {  static void addstatsavemenu(HMENU hMenu, UINT pos) {
   
         HMENU   hSubMenu;          HMENU   hSubMenu;
         UINT    i;          UINT    i;
         OEMCHAR buf[16];          TCHAR   buf[16];
   
         hSubMenu = CreatePopupMenu();          hSubMenu = CreatePopupMenu();
         for (i=0; i<SUPPORT_STATSAVE; i++) {          for (i=0; i<SUPPORT_STATSAVE; i++) {
                 OEMSPRINTF(buf, xmenu_statsave, i);                  wsprintf(buf, xmenu_statsave, i);
                 AppendMenu(hSubMenu, MF_STRING, IDM_FLAGSAVE + i, buf);                  AppendMenu(hSubMenu, MF_STRING, IDM_FLAGSAVE + i, buf);
         }          }
         AppendMenu(hSubMenu, MF_MENUBARBREAK, 0, NULL);          AppendMenu(hSubMenu, MF_MENUBARBREAK, 0, NULL);
         for (i=0; i<SUPPORT_STATSAVE; i++) {          for (i=0; i<SUPPORT_STATSAVE; i++) {
                 OEMSPRINTF(buf, xmenu_statload, i);                  wsprintf(buf, xmenu_statload, i);
                 AppendMenu(hSubMenu, MF_STRING, IDM_FLAGLOAD + i, buf);                  AppendMenu(hSubMenu, MF_STRING, IDM_FLAGLOAD + i, buf);
         }          }
         InsertMenu(hMenu, pos, MF_BYPOSITION | MF_POPUP,          InsertMenu(hMenu, pos, MF_BYPOSITION | MF_POPUP,

Removed from v.1.20  
changed lines
  Added in v.1.21


RetroPC.NET-CVS <cvs@retropc.net>