Updated res.rc & resource.h to with changes to memwatch dialog. And added a memw menu for it. Also added come code to memwatch for some of the menu function but they are commented out since memwatch can't yet recognize the menu items.

This commit is contained in:
adelikat 2008-05-16 15:56:31 +00:00
parent e85df098d6
commit f38dcdec9b
4 changed files with 71 additions and 3 deletions

View File

@ -34,6 +34,8 @@ int nextBookmark = 0;
* @param address The address to find.
* @return The index of the bookmark at that address or -1 if there's no bookmark at that address.
**/
int findBookmark(unsigned int address)
{
int i;

View File

@ -438,6 +438,41 @@ static BOOL CALLBACK MemWatchCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA
hwndMemWatch=0;
break;
case WM_COMMAND:
//Menu Items
/*switch(wParam)
{
case MEMW_FILE_CLOSED: // Close memwatch window. TODO: check if current watch has been saved and ask if save changes
SaveStrings();
DestroyWindow(hwndMemWatch);
hwndMemWatch=0;
break;
case MEMW_FILE_OPEN:
LoadMemWatch();
break;
case MEMW_FILE_SAVEAS:
SaveMemWatch();
break;
case MEMW_FILE_NEW:
//TODO: Replace confirm clear with a check if file is saved followed by a "do you wish to save?" message
if(MessageBox(hwndMemWatch, "Clear all text?", "Confirm clear", MB_YESNO)==IDYES)
{
int i;
for(i=0;i<24;i++)
{
addresses[i][0] = 0;
labels[i][0] = 0;
SetDlgItemText(hwndMemWatch,1001+i*3,(LPTSTR) addresses[i]);
SetDlgItemText(hwndMemWatch,1000+i*3,(LPTSTR) labels[i]);
}
}
default:
break;
}*/
switch(HIWORD(wParam))
{

Binary file not shown.

View File

@ -270,6 +270,37 @@
#define MENU_DEBUGGER 40080
#define MENU_MEMORY_WATCH 40081
#define MENU_RAMFILTER 40082
#define MENU_OPEN 40083
#define MENU_CLOSE 40084
#define MENU_SAVEAS 40085
#define MENU_SAVE 40086
#define MENU_RECENT 40087
#define MENU_CLEARTEXT 40088
#define MENU_LOADSTART 40089
#define ID_OPTIONS_LOADLASTFILEONSTARTUP 40090
#define ID_OPTIONS_LOADLASTFILE 40091
#define OPTIONS_LOADSTART 40092
#define FILE_OPEN 40093
#define FILE_CLOSE 40094
#define FILE_SAVE 40095
#define FILE_SAVEAS 40096
#define FILE_RECENT 40097
#define FILE_CLEARTEXT 40098
#define ID_HELP_COMMANDS 40099
#define About 40100
#define ID_HELP_ABOUT 40101
#define FILE_NEW 40102
#define MEMW_FILE_NEW 40103
#define MEMW_FILE_OPEN 40104
#define MEMW_FILE_SAVE 40105
#define MEMW_FILE_SAVEAS 40106
#define MEMW_FILE_RECENT 40107
#define MEMW_FILE_CLOSE 40108
#define MEMW_OPTIONS_LOADSTART 40109
#define MEMW_ID_OPTIONS_LOADLASTFILE 40110
#define MEMW_WCOMMANDS 40111
#define MEMW_HELP_ABOUT 40112
#define MEMW_HELP_WCOMMANDS 40113
#define MENU_LOG_SOUND 40120
#define MW_ValueLabel2 65423
#define MW_ValueLabel1 65426
@ -281,9 +312,9 @@
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 106
#define _APS_NEXT_COMMAND_VALUE 40083
#define _APS_NEXT_CONTROL_VALUE 1128
#define _APS_NEXT_RESOURCE_VALUE 107
#define _APS_NEXT_COMMAND_VALUE 40114
#define _APS_NEXT_CONTROL_VALUE 1129
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif