From 71ccb69ed4d67471e68dabd11a53b7a1c8c29bd2 Mon Sep 17 00:00:00 2001 From: Kingcom Date: Thu, 7 Nov 2013 18:39:41 +0100 Subject: [PATCH] Periodically redraw memory view --- Windows/Debugger/CtrlMemView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Windows/Debugger/CtrlMemView.cpp b/Windows/Debugger/CtrlMemView.cpp index 1554a9cf0b..49edf340b5 100644 --- a/Windows/Debugger/CtrlMemView.cpp +++ b/Windows/Debugger/CtrlMemView.cpp @@ -53,6 +53,9 @@ CtrlMemView::CtrlMemView(HWND _wnd) addressStart = charWidth; hexStart = addressStart + 9*charWidth; asciiStart = hexStart + (rowSize*3+1)*charWidth; + + // set redraw timer + SetTimer(wnd,1,1000,0); } CtrlMemView::~CtrlMemView() @@ -150,6 +153,10 @@ LRESULT CALLBACK CtrlMemView::wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case WM_GETDLGCODE: // we want to process the arrow keys and all characters ourselves return DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_WANTTAB; break; + case WM_TIMER: + if (wParam == 1 && IsWindowVisible(ccp->wnd)) + ccp->redraw(); + break; default: break; }