From ad7df17b96be0afa7d5e1226931e764099069306 Mon Sep 17 00:00:00 2001 From: oddMLan <oddMLan2@gmail.com> Date: Sun, 13 Jan 2019 22:43:14 -0700 Subject: [PATCH] [Debugger] DMALog: Remember window position --- .../Project64/UserInterface/Debugger/Debugger-DMALogView.cpp | 5 +++++ .../Project64/UserInterface/Debugger/Debugger-DMALogView.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.cpp b/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.cpp index 214116f00..e78609279 100644 --- a/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.cpp +++ b/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.cpp @@ -191,6 +191,11 @@ LRESULT CDebugDMALogView::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM return TRUE; } +void CDebugDMALogView::OnExitSizeMove(void) +{ + SaveWindowPos(DMALogView_Top, DMALogView_Left); +} + LRESULT CDebugDMALogView::OnDestroy(void) { if (m_AutoRefreshThread != NULL) diff --git a/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.h b/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.h index 11f6be524..7b0b092c0 100644 --- a/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.h +++ b/Source/Project64/UserInterface/Debugger/Debugger-DMALogView.h @@ -54,6 +54,7 @@ private: LRESULT OnRomAddrChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT OnCustomDrawList(NMHDR* pNMHDR); LRESULT OnDestroy(void); + void OnExitSizeMove(void); BEGIN_MSG_MAP_EX(CDebugDMALogView) MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) @@ -63,6 +64,7 @@ private: COMMAND_HANDLER(IDC_DMA_ROM_EDIT, EN_CHANGE, OnRomAddrChanged) NOTIFY_HANDLER_EX(IDC_DMA_LIST, NM_CUSTOMDRAW, OnCustomDrawList) CHAIN_MSG_MAP(CDialogResize<CDebugDMALogView>) + MSG_WM_EXITSIZEMOVE(OnExitSizeMove) END_MSG_MAP() BEGIN_DLGRESIZE_MAP(CDebugDMALogView)