Add new items to top.
(This summarizes all changes to all files under Src, including Src\Languages.)
+2006-08-13 Gal
+ BUG: [ 1538340 ] Undo enabled for folder compare.
+ Src: DirView.h DirView.cpp
+
2006-08-13 Takashi
Japanese translation - update
Src/Languages/Japanese/MergeJapanese.rc
ON_COMMAND(ID_EDIT_CUT, OnEditCut)
ON_COMMAND(ID_EDIT_PASTE, OnEditPaste)
ON_COMMAND(ID_EDIT_UNDO, OnEditUndo)
+ ON_UPDATE_COMMAND_UI(ID_EDIT_UNDO, OnUpdateEditUndo)
//}}AFX_MSG_MAP
ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnColumnClick)
ON_NOTIFY_REFLECT(LVN_ITEMCHANGED, OnItemChanged)
pEdit->Undo();
}
}
+
+/**
+ * @brief Update the tool bar's "Undo" icon. It should be enabled when
+ * renaming an item and undo is possible.
+ */
+void CDirView::OnUpdateEditUndo(CCmdUI* pCmdUI)
+{
+ CEdit *pEdit = m_pList->GetEditControl();
+ if (NULL != pEdit)
+ {
+ pCmdUI->Enable(pEdit->CanUndo());
+ }
+ else
+ {
+ pCmdUI->Enable(FALSE);
+ }
+}
afx_msg void OnEditCut();
afx_msg void OnEditPaste();
afx_msg void OnEditUndo();
+ afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
BOOL OnHeaderBeginDrag(LPNMHEADER hdr, LRESULT* pResult);