diff --git a/RegExp/ExportDlg.cpp b/RegExp/ExportDlg.cpp index 7339d70..5eb2ce5 100644 --- a/RegExp/ExportDlg.cpp +++ b/RegExp/ExportDlg.cpp @@ -38,7 +38,7 @@ LRESULT CExportDlg::OnCloseCmd(WORD, WORD wID, HWND, BOOL&) { LRESULT CExportDlg::OnBrowse(WORD, WORD wID, HWND, BOOL&) { ThemeHelper::Suspend(); - CSimpleFileDialog dlg(FALSE, nullptr, nullptr, + CSimpleFileDialog dlg(FALSE, L"Reg", nullptr, OFN_EXPLORER | OFN_ENABLESIZING | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY, L"REG format (*reg)\0*.reg\0Native Format\0*.*\0", m_hWnd); if (dlg.DoModal() == IDOK) { diff --git a/RegExp/MainFrame.cpp b/RegExp/MainFrame.cpp index fd29ff2..845834c 100644 --- a/RegExp/MainFrame.cpp +++ b/RegExp/MainFrame.cpp @@ -677,7 +677,7 @@ LRESULT CMainFrame::OnListItemChanged(int, LPNMHDR, BOOL&) { } LRESULT CMainFrame::OnViewRefresh(WORD, WORD, HWND, BOOL&) { - auto hCurrent = m_Tree.GetSelectedItem(); + auto path = GetCurrentKeyPath(); TreeHelper th(m_Tree); th.DoForEachItem(m_hStdReg, 0, [this](auto hItem, auto state) { RefreshItem(hItem); @@ -685,7 +685,7 @@ LRESULT CMainFrame::OnViewRefresh(WORD, WORD, HWND, BOOL&) { th.DoForEachItem(m_hRealReg, 0, [this](auto hItem, auto state) { RefreshItem(hItem); }); - m_Tree.EnsureVisible(hCurrent); + GotoKey(path); return 0; } diff --git a/RegExp/RegExp.rc b/RegExp/RegExp.rc index 92b160b..992bb62 100644 Binary files a/RegExp/RegExp.rc and b/RegExp/RegExp.rc differ diff --git a/WTLHelper b/WTLHelper index b7fa6ca..bc487f9 160000 --- a/WTLHelper +++ b/WTLHelper @@ -1 +1 @@ -Subproject commit b7fa6ca9f2fc67ae2bebb529f55a836bc3a419ba +Subproject commit bc487f933a596165c6c7ccb0b3b94da9864731e0