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) + MSG_WM_EXITSIZEMOVE(OnExitSizeMove) END_MSG_MAP() BEGIN_DLGRESIZE_MAP(CDebugDMALogView)