Diff for /np2/win9x/menu.cpp between versions 1.9 and 1.11

version 1.9, 2003/12/25 03:02:40 version 1.11, 2004/02/11 17:39:59
Line 171  void menu_addmenubar(HMENU popup, HMENU  Line 171  void menu_addmenubar(HMENU popup, HMENU 
   
 // ----  // ----
   
   static const char xmenu_stat[] = "S&tat";
   static const char xmenu_statsave[] = "Save %d";
   static const char xmenu_statload[] = "Load %d";
   static const char xmenu_scsi[] = "SCSI #%d";
   static const char xmenu_open[] = "&Open...";
   static const char xmenu_remove[] = "&Remove";
   
   static void addscsimenu(HMENU hMenu, UINT drv, UINT16 open, UINT16 eject) {
   
           HMENU   hSubMenu;
           char    buf[16];
   
           hSubMenu = CreatePopupMenu();
           AppendMenu(hSubMenu, MF_STRING, open, xmenu_open);
           AppendMenu(hSubMenu, MF_SEPARATOR, 0, NULL);
           AppendMenu(hSubMenu, MF_STRING, eject, xmenu_remove);
   
           SPRINTF(buf, xmenu_scsi, drv);
           AppendMenu(hMenu, MF_POPUP, (UINT32)hSubMenu, buf);
   }
   
   void xmenu_initialize(void) {
   
           HMENU   hMenu;
           HMENU   hSubMenu;
           int             i;
           char    buf[16];
   
           hMenu = np2class_gethmenu(hWndMain);
   
   #if defined(SUPPORT_SCSI)
           hSubMenu = GetSubMenu(hMenu, 3);
           AppendMenu(hSubMenu, MF_SEPARATOR, 0, NULL);
           addscsimenu(hSubMenu, 0, IDM_SCSI0OPEN, IDM_SCSI0EJECT);
           addscsimenu(hSubMenu, 1, IDM_SCSI1OPEN, IDM_SCSI1EJECT);
           addscsimenu(hSubMenu, 2, IDM_SCSI2OPEN, IDM_SCSI2EJECT);
           addscsimenu(hSubMenu, 3, IDM_SCSI3OPEN, IDM_SCSI3EJECT);
   #endif
   
           // めにゅー追加
           if (np2oscfg.statsave) {
                   hSubMenu = CreatePopupMenu();
                   for (i=0; i<STATSAVEMAX; i++) {
                           SPRINTF(buf, xmenu_statsave, i);
                           AppendMenu(hSubMenu, MF_STRING, IDM_FLAGSAVE + i, buf);
                   }
                   AppendMenu(hSubMenu, MF_MENUBARBREAK, 0, NULL);
                   for (i=0; i<STATSAVEMAX; i++) {
                           SPRINTF(buf, xmenu_statload, i);
                           AppendMenu(hSubMenu, MF_STRING, IDM_FLAGLOAD + i, buf);
                   }
                   InsertMenu(hMenu, 1, MF_BYPOSITION | MF_POPUP,
                                                                                                   (UINT32)hSubMenu, xmenu_stat);
           }
   }
   
 void xmenu_disablewindow(void) {  void xmenu_disablewindow(void) {
   
         HMENU   hmenu;          HMENU   hmenu;
Line 253  void xmenu_setf12copy(BYTE value) { Line 309  void xmenu_setf12copy(BYTE value) {
   
         HMENU   hmenu;          HMENU   hmenu;
   
         if (value >= 5) {          if (value > 6) {
                 value = 0;                  value = 0;
         }          }
         np2oscfg.F12COPY = value;          np2oscfg.F12COPY = value;
Line 263  void xmenu_setf12copy(BYTE value) { Line 319  void xmenu_setf12copy(BYTE value) {
         CheckMenuItem(hmenu, IDM_F12STOP, MFCHECK(value == 2));          CheckMenuItem(hmenu, IDM_F12STOP, MFCHECK(value == 2));
         CheckMenuItem(hmenu, IDM_F12EQU, MFCHECK(value == 3));          CheckMenuItem(hmenu, IDM_F12EQU, MFCHECK(value == 3));
         CheckMenuItem(hmenu, IDM_F12COMMA, MFCHECK(value == 4));          CheckMenuItem(hmenu, IDM_F12COMMA, MFCHECK(value == 4));
           CheckMenuItem(hmenu, IDM_USERKEY1, MFCHECK(value == 5));
           CheckMenuItem(hmenu, IDM_USERKEY2, MFCHECK(value == 6));
 }  }
   
 void xmenu_setbeepvol(BYTE value) {  void xmenu_setbeepvol(BYTE value) {

Removed from v.1.9  
changed lines
  Added in v.1.11


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