From 23410a7ea0e0e2576c7afede283e6489ab2838ba Mon Sep 17 00:00:00 2001 From: dave-kaye <91984396+dave-kaye@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:25:34 -0500 Subject: [PATCH] [win] Delete Help/Demo Menu Item Delete Demo submenu item under Help menu that is inactive after commit 21f526. --- src/celestia/win32/res/celestia.rc | 2 -- src/celestia/win32/res/resource.h | 1 - src/celestia/win32/winmain.cpp | 6 +----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/celestia/win32/res/celestia.rc b/src/celestia/win32/res/celestia.rc index b844d4672e..8ca097a601 100644 --- a/src/celestia/win32/res/celestia.rc +++ b/src/celestia/win32/res/celestia.rc @@ -260,8 +260,6 @@ IDR_MAIN_MENU MENU } POPUP "&Help" { - MENUITEM "Run &Demo", ID_HELP_RUNDEMO - MENUITEM SEPARATOR MENUITEM "User &Guide", ID_HELP_GUIDE MENUITEM "&Controls", ID_HELP_CONTROLS MENUITEM "&OpenGL Info", ID_HELP_GLINFO diff --git a/src/celestia/win32/res/resource.h b/src/celestia/win32/res/resource.h index 1c5452b22a..39c8a3fb13 100644 --- a/src/celestia/win32/res/resource.h +++ b/src/celestia/win32/res/resource.h @@ -229,7 +229,6 @@ #define ID_BOOKMARKS_ADDBOOKMARK 40034 #define ID_RENDER_LOCATIONS 40035 #define ID_INFO 40040 -#define ID_HELP_RUNDEMO 40041 #define ID_RENDER_MORESTARS 40042 #define ID_RENDER_FEWERSTARS 40043 #define ID_RENDER_AUTOMAG 40044 diff --git a/src/celestia/win32/winmain.cpp b/src/celestia/win32/winmain.cpp index 032d1ba237..1071816d42 100644 --- a/src/celestia/win32/winmain.cpp +++ b/src/celestia/win32/winmain.cpp @@ -3697,6 +3697,7 @@ LRESULT CALLBACK MainWindowProc(HWND hWnd, //Associate some menu items with bitmap resources odAppMenu.SetItemImage(appInstance, ID_FILE_OPENSCRIPT, IDB_SCRIPT); + odAppMenu.SetItemImage(appInstance, ID_FILE_RUNDEMO, IDB_SCRIPT); odAppMenu.SetItemImage(appInstance, ID_FILE_CAPTUREIMAGE, IDB_CAMERA); odAppMenu.SetItemImage(appInstance, ID_FILE_CAPTUREMOVIE, IDB_CAMCORDER); odAppMenu.SetItemImage(appInstance, ID_FILE_EXIT, IDB_EXIT); @@ -3704,7 +3705,6 @@ LRESULT CALLBACK MainWindowProc(HWND hWnd, odAppMenu.SetItemImage(appInstance, ID_TIME_FREEZE, IDB_STOP); odAppMenu.SetItemImage(appInstance, ID_RENDER_VIEWOPTIONS, IDB_SUNGLASSES); odAppMenu.SetItemImage(appInstance, ID_RENDER_LOCATIONS, IDB_GLOBE); - odAppMenu.SetItemImage(appInstance, ID_HELP_RUNDEMO, IDB_SCRIPT); odAppMenu.SetItemImage(appInstance, ID_HELP_CONTROLS, IDB_CONFIG); odAppMenu.SetItemImage(appInstance, ID_HELP_ABOUT, IDB_ABOUT); odAppMenu.SetItemImage(appInstance, ID_BOOKMARKS_ADDBOOKMARK, IDB_BOOKMARK_ADD); @@ -4323,10 +4323,6 @@ LRESULT CALLBACK MainWindowProc(HWND hWnd, DialogBox(hRes, MAKEINTRESOURCE(IDD_ORGANIZE_BOOKMARKS), hWnd, (DLGPROC)OrganizeBookmarksProc); break; - case ID_HELP_RUNDEMO: - appCore->charEntered('D'); - break; - case ID_HELP_GUIDE: ShellExecute(hWnd, "open", "help\\CelestiaGuide.html", NULL, NULL, SW_NORMAL); break;