www.pudn.com > IFSEditor.rar > IFSEditorDoc.h
// IFSEditorDoc.h : interface of the CIFSEditorDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_IFSEDITORDOC_H__7A058551_2EB6_491A_B760_E07B09F0EF35__INCLUDED_)
#define AFX_IFSEDITORDOC_H__7A058551_2EB6_491A_B760_E07B09F0EF35__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct CIFS
{
double m_a;
double m_b;
double m_c;
double m_d;
double m_e;
double m_f;
double m_pi;
CIFS()
{
m_a = 0.0;
m_b = 0.0;
m_c = 0.0;
m_d = 0.0;
m_e = 0.0;
m_f = 0.0;
m_pi = 0.0;
}
void inline Calculate(double &x, double &y)
{
double x2 = m_a * x + m_b * y + m_e;
double y2 = m_c * x + m_d * y + m_f;
x = x2;
y = y2;
}
};
class CProgressDlg;
class CIFSEditorDoc : public CDocument
{
protected: // create from serialization only
CIFSEditorDoc();
DECLARE_DYNCREATE(CIFSEditorDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CIFSEditorDoc)
public:
virtual BOOL OnNewDocument();
virtual void DeleteContents();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
friend CProgressDlg;
CBitmap * GetBitmap();
BOOL GetValid();
int GetHeight();
int GetWidth();
virtual ~CIFSEditorDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
BOOL m_bValid;
CBitmap m_bmpDisplay;
CArray m_IFSArray;
COLORREF m_clrFore;
COLORREF m_clrBack;
CPoint m_ptStartPos;
int m_dwN;
int m_dwUnitLenY;
int m_dwUnitLenX;
int m_dwHeight;
int m_dwWidth;
//{{AFX_MSG(CIFSEditorDoc)
afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
afx_msg void OnEditIfs();
afx_msg void OnEditRestart();
afx_msg void OnEditCopy();
afx_msg void OnEditExport();
afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditExport(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditRestart(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
void CreateBMPFile(HWND hwnd, LPTSTR pszFile, PBITMAPINFO pbi, HBITMAP hBMP, HDC hDC);
PBITMAPINFO CreateBitmapInfoStruct(HWND hwnd, HBITMAP hBmp);
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IFSEDITORDOC_H__7A058551_2EB6_491A_B760_E07B09F0EF35__INCLUDED_)