|
#pragma once
//-------------------------------------------------------------------------------------
class CMy002Doc : public CDocument
{
public:
FCObjImage m_img ;
FCImageProperty m_property ;
~CMy002Doc() ;
private:
std::deque<FCObjImage*> m_undo ;
std::deque<FCObjImage*> m_redo ;
enum TARGET_STATUS
{
TARGET_FILE_OK,
TARGET_FILE_VIOLATION,
TARGET_FILE_DENY,
};
static TARGET_STATUS QuerySaveTargetFileStatus (LPCTSTR strDestFile) ;
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
void SaveCurrentToUndo() ;
void SaveCurrentToRedo() ;
void ClearRedo() ;
afx_msg void OnEditUndo();
afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
afx_msg void OnEditRedo();
afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
afx_msg void OnFileSaveAs();
afx_msg void OnToolExportAscii();
afx_msg void OnImageEffect(UINT nID);
afx_msg void OnEditCopy();
DECLARE_MESSAGE_MAP()
DECLARE_DYNCREATE(CMy002Doc)
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
graduate from University of Science and Technology of China at 2002.
Now I work at www.phoxo.com.