CCS範例
void CMiniDraw1Doc::OnUpdateEditClearAll(CCmdUI* pCmdUI){
// TODO: Add your command update UI handler code here
pCmdUI->Enable (m_LineArray.GetSize ());
}void CMiniDraw1Doc::OnEditUndo()
{
// TODO: Add your command handler code here
int Index =m_LineArray.GetUpperBound ();
if(Index>-1)
{
delete m_LineArray.GetAt (Index);
m_LineArray.RemoveAt (Index);
UpdateAllViews(0);
SetModifiedFlag();
}
}
void CMiniDraw1Doc::OnUpdateEditUndo(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
pCmdUI->Enable (m_LineArray.GetSize());
}
页:
[1]