[Debugger] Symbols: Remember window position

This commit is contained in:
oddMLan 2019-01-13 22:55:19 -07:00
parent fc6ef16cb3
commit d60558dacb
2 changed files with 7 additions and 0 deletions

View File

@ -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();

View File

@ -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<CDebugSymbols>)
MSG_WM_EXITSIZEMOVE(OnExitSizeMove);
END_MSG_MAP()
BEGIN_DLGRESIZE_MAP(CDebugSymbols)