英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流
标题:
CCS範例
[打印本页]
作者:
winnie
时间:
2009-3-28 11:42
标题:
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());
}
欢迎光临 英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 (http://enroobbs.com/)
Powered by Discuz! X3.2