From d60558dacb8925295cb5028c91a8d001275ea064 Mon Sep 17 00:00:00 2001 From: oddMLan Date: Sun, 13 Jan 2019 22:55:19 -0700 Subject: [PATCH] [Debugger] Symbols: Remember window position --- Source/Project64/UserInterface/Debugger/Debugger-Symbols.cpp | 5 +++++ Source/Project64/UserInterface/Debugger/Debugger-Symbols.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/Project64/UserInterface/Debugger/Debugger-Symbols.cpp b/Source/Project64/UserInterface/Debugger/Debugger-Symbols.cpp index 0d5a9066f..9d44bc708 100644 --- a/Source/Project64/UserInterface/Debugger/Debugger-Symbols.cpp +++ b/Source/Project64/UserInterface/Debugger/Debugger-Symbols.cpp @@ -55,6 +55,11 @@ LRESULT CDebugSymbols::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*l return 0; } +void CDebugSymbols::OnExitSizeMove(void) +{ + SaveWindowPos(Symbols_Top, Symbols_Left); +} + LRESULT CDebugSymbols::OnDestroy(void) { m_SymbolsListView.Detach(); diff --git a/Source/Project64/UserInterface/Debugger/Debugger-Symbols.h b/Source/Project64/UserInterface/Debugger/Debugger-Symbols.h index 816aaa4fa..06ccb71e5 100644 --- a/Source/Project64/UserInterface/Debugger/Debugger-Symbols.h +++ b/Source/Project64/UserInterface/Debugger/Debugger-Symbols.h @@ -39,6 +39,7 @@ public: LRESULT OnClicked(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); LRESULT OnListDblClicked(NMHDR* pNMHDR); LRESULT OnDestroy(void); + void OnExitSizeMove(void); BEGIN_MSG_MAP_EX(CDebugSymbols) COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked) @@ -47,6 +48,7 @@ public: NOTIFY_HANDLER_EX(IDC_SYMBOLS_LIST, NM_DBLCLK, OnListDblClicked) //NOTIFY_HANDLER_EX(IDC_CMD_LIST, NM_RCLICK, OnListClicked) CHAIN_MSG_MAP(CDialogResize) + MSG_WM_EXITSIZEMOVE(OnExitSizeMove); END_MSG_MAP() BEGIN_DLGRESIZE_MAP(CDebugSymbols)