From 27e3030af3e3b57d8ee8187a848ee3f28527fc53 Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Tue, 28 Feb 2006 18:40:28 +0000 Subject: [PATCH] Added Drive Protection Light --- resource/Applewin.rc | 18 ++++++++++++++++-- resource/resource.h | 40 ++++++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/resource/Applewin.rc b/resource/Applewin.rc index 20004a6a..a13a9b5b 100644 --- a/resource/Applewin.rc +++ b/resource/Applewin.rc @@ -62,6 +62,7 @@ CHARSET40 BITMAP "CHARSET4.BMP" DISKOFF_BITMAP BITMAP "DISKOFF.BMP" DISKREAD_BITMAP BITMAP "DISKREAD.BMP" DISKWRITE_BITMAP BITMAP "DISKWRIT.BMP" +DISKPROT_BITMAP BITMAP "DISKPROT.BMP" CAPSOFF_BITMAP BITMAP "CAPSOFF.BMP" CAPSON_BITMAP BITMAP "CAPSON.BMP" HELP_BUTTON BITMAP "HELP.BMP" @@ -265,14 +266,15 @@ END // Data // -IDR_HDDRVR RCDATA "Hddrvr.bin" +IDR_HDDRVR RCDATA "Hddrvr.bin" + ///////////////////////////////////////////////////////////////////////////// // // Menu // -IDR_MENU1 MENU +IDR_MENU MENU BEGIN POPUP "&File" BEGIN @@ -285,6 +287,18 @@ BEGIN END END +ID_MENU_DISK_POPUP MENU +BEGIN + POPUP "Disk Menu" + BEGIN + MENUITEM "&Eject", ID_DISKMENU_EJECT + MENUITEM "&Write protection: ON", ID_DISKMENU_WRITEPROTECTION_ON + MENUITEM "W&rite protection: OFF", ID_DISKMENU_WRITEPROTECTION_OFF + + END +END + + #endif // English (U.S.) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/resource/resource.h b/resource/resource.h index 96e7d0f5..39e1d5fe 100644 --- a/resource/resource.h +++ b/resource/resource.h @@ -2,31 +2,32 @@ // Microsoft Visual C++ generated include file. // Used by Applewin.rc // +#define ID_MENU_DISK_POPUP 4 #define IDC_COMPUTER 101 #define IDC_JOYSTICK0 102 #define IDC_SOUNDTYPE 103 #define IDC_SERIALPORT 104 -#define IDR_MENU1 104 #define IDR_ACCELERATOR1 105 -#define IDC_VIDEOTYPE 105 -#define IDD_PROPPAGE_INPUT 106 -#define IDC_AUTHENTIC_SPEED 106 -#define IDD_PROPPAGE_CONFIG 107 -#define IDC_CUSTOM_SPEED 107 -#define IDC_SLIDER_CPU_SPEED 108 -#define IDD_PROPPAGE_SOUND 108 -#define IDC_DISKTYPE 109 -#define IDD_PROPPAGE_SAVESTATE 109 -#define IDC_JOYSTICK1 110 -#define IDD_PROPPAGE_DISK 110 -#define IDC_BENCHMARK 111 -#define IDC_LOADSTATE 112 -#define IDR_HDDRVR 115 -#define IDC_0_5_MHz 121 +#define IDC_VIDEOTYPE 106 +#define IDD_PROPPAGE_INPUT 107 +#define IDC_AUTHENTIC_SPEED 108 +#define IDD_PROPPAGE_CONFIG 109 +#define IDC_CUSTOM_SPEED 110 +#define IDC_SLIDER_CPU_SPEED 111 +#define IDD_PROPPAGE_SOUND 112 +#define IDC_DISKTYPE 113 +#define IDD_PROPPAGE_SAVESTATE 114 +#define IDC_JOYSTICK1 115 +#define IDD_PROPPAGE_DISK 116 +#define IDC_BENCHMARK 117 +#define IDC_LOADSTATE 118 +#define IDR_HDDRVR 119 +#define IDC_0_5_MHz 120 #define IDB_APPLEWIN 121 #define IDC_1_0_MHz 122 #define IDC_2_0_MHz 123 #define IDC_MAX_MHz 124 +#define IDR_MENU 125 #define IDC_MB_ENABLE 130 #define IDC_KEYB_BUFFER_ENABLE 1005 #define IDC_SAVESTATE 1006 @@ -53,14 +54,17 @@ #define IDM_EXIT 40001 #define IDM_HELP 40002 #define IDM_ABOUT 40003 +#define ID_DISKMENU_EJECT 40004 +#define ID_DISKMENU_WRITEPROTECTION_ON 40005 +#define ID_DISKMENU_WRITEPROTECTION_OFF 40006 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NO_MFC 1 -#define _APS_NEXT_RESOURCE_VALUE 122 -#define _APS_NEXT_COMMAND_VALUE 40004 +#define _APS_NEXT_RESOURCE_VALUE 131 +#define _APS_NEXT_COMMAND_VALUE 40007 #define _APS_NEXT_CONTROL_VALUE 1031 #define _APS_NEXT_SYMED_VALUE 101 #endif