CoreLog.h
资源名称:44757463.rar [点击查看]
上传用户:lj3531212
上传日期:2007-06-18
资源大小:346k
文件大小:1k
源码类别:
绘图程序
开发平台:
Visual C++
- // CoreLog.h: CCoreLog
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CORELOG_H__4A873F13_CCD1_11D4_B1EB_00300503877F__INCLUDED_)
- #define AFX_CORELOG_H__4A873F13_CCD1_11D4_B1EB_00300503877F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "afxtempl.h"
- class CUND_Base;
- class CCore;
- class CCoreLog{
- public:
- CString m_logfile; //
- CArray<CUND_Base*, CUND_Base*> m_undoInfo; //
- long int m_nUndoInfo; //
- long int m_nUndoUndo; //
- FILE* m_fp; //
- public:
- CCoreLog();
- virtual ~CCoreLog();
- void OpenLog();
- void CloseLog();
- BOOL AddUndoTitle(CString title, CCore *pCore,BOOL bSendMessage,long nPSID);
- BOOL WriteLogString(CString text);
- void ClearUndoInfo(long int nUndoUndo = 0);
- void OnEditUndo(CCore* pCore);
- void OnEditRedo(CCore* pCore);
- BOOL IsAbleToUndo();
- BOOL IsAbleToRedo();
- void AddUndoItem(CUND_Base* pUndo);
- void DelLastUndoItem();
- };
- #endif // !defined(AFX_CORELOG_H__4A873F13_CCD1_11D4_B1EB_00300503877F__INCLUDED_)