Win32 - Ram Watch - Add Separator button

This commit is contained in:
adelikat 2010-08-10 01:42:41 +00:00
parent 29acd2d238
commit cc38aeeef8
4 changed files with 44 additions and 0 deletions

View File

@ -1991,6 +1991,38 @@
</File> </File>
</Filter> </Filter>
</Filter> </Filter>
<File
RelativePath=".\bitmaps\IDB_FRAMEADVANCE.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_OPEN.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_PAUSE.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_PLAY.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_RESET.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_ROTATECCW.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_ROTATECW.bmp"
>
</File>
<File
RelativePath=".\bitmaps\IDB_STOP.bmp"
>
</File>
</Files> </Files>
<Globals> <Globals>
<Global <Global

View File

@ -59,6 +59,7 @@ unsigned int GetCurrentValue(AddressWatcher& watch)
bool IsSameWatch(const AddressWatcher& l, const AddressWatcher& r) bool IsSameWatch(const AddressWatcher& l, const AddressWatcher& r)
{ {
if (r.Size == 'S') return false;
return ((l.Address == r.Address) && (l.Size == r.Size) && (l.Type == r.Type)/* && (l.WrongEndian == r.WrongEndian)*/); return ((l.Address == r.Address) && (l.Size == r.Size) && (l.Type == r.Type)/* && (l.WrongEndian == r.WrongEndian)*/);
} }
@ -1001,6 +1002,17 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST)); SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST));
} }
return true; return true;
case IDC_C_WATCH_SEPARATE:
AddressWatcher separator;
separator.Address = 0;
separator.WrongEndian = false;
separator.Size = 'S';
separator.Type = 'S';
InsertWatch(separator, "----------------------------");
SetFocus(GetDlgItem(hDlg,IDC_WATCHLIST));
return true;
case IDC_C_WATCH_UP: case IDC_C_WATCH_UP:
{ {
watchIndex = ListView_GetSelectionMark(GetDlgItem(hDlg,IDC_WATCHLIST)); watchIndex = ListView_GetSelectionMark(GetDlgItem(hDlg,IDC_WATCHLIST));

Binary file not shown.

Binary file not shown.