From abc9d733b242b11c7aeabe8ec79a1ed8d5e36835 Mon Sep 17 00:00:00 2001 From: cyberwarriorx Date: Fri, 1 Dec 2006 06:36:02 +0000 Subject: [PATCH] -Fixed a couple of warnings -Added a few menu options for accessing the website, forums, and for submitting bugs. --- desmume/src/windows/main.c | 9 +++++++++ desmume/src/windows/resource.h | 5 ++++- desmume/src/windows/resources.rc | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index c31c0c169..c6680ff0e 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -884,6 +884,15 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM } return 0; + case IDM_WEBSITE: + ShellExecute(NULL, "open", "http://desmume.sourceforge.net", NULL, NULL, SW_SHOWNORMAL); + return 0; + case IDM_FORUM: + ShellExecute(NULL, "open", "http://sourceforge.net/forum/?group_id=164579", NULL, NULL, SW_SHOWNORMAL); + return 0; + case IDM_SUBMITBUGREPORT: + ShellExecute(NULL, "open", "http://sourceforge.net/tracker/?func=add&group_id=164579&atid=832291", NULL, NULL, SW_SHOWNORMAL); + return 0; } return 0; default: /* for messages that we don't deal with */ diff --git a/desmume/src/windows/resource.h b/desmume/src/windows/resource.h index 064071b93..6e6bf852d 100644 --- a/desmume/src/windows/resource.h +++ b/desmume/src/windows/resource.h @@ -33,7 +33,7 @@ void refreshAll(); #define IconDeSmuME 100 -#define IDC_STATIC 101 +#define IDC_STATIC -1 #define IDM_OPEN 102 #define IDM_QUIT 103 #define IDC_FERMER 104 @@ -66,6 +66,9 @@ void refreshAll(); #define IDM_PRINTSCREEN 140 #define IDM_QUICK_PRINTSCREEN 141 #define IDM_SOUNDSETTINGS 142 +#define IDM_WEBSITE 143 +#define IDM_FORUM 144 +#define IDM_SUBMITBUGREPORT 145 #define IDM_STATE_LOAD 150 #define IDM_STATE_SAVE 151 diff --git a/desmume/src/windows/resources.rc b/desmume/src/windows/resources.rc index 9a9ec7d11..e86316990 100644 --- a/desmume/src/windows/resources.rc +++ b/desmume/src/windows/resources.rc @@ -346,6 +346,12 @@ MENU_PRINCIPAL MENU MENUITEM "Sub BG 3", IDM_SBG3, CHECKED } } + POPUP "&Help" + { + MENUITEM "&Website", IDM_WEBSITE + MENUITEM "&Forums", IDM_FORUM + MENUITEM "&Submit a bug report", IDM_SUBMITBUGREPORT + } } IDD_CONFIG DIALOG DISCARDABLE 0, 0, 125, 227