DIBDoc.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:2k
- // DIBDoc.h : interface of the CDIBDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DIBDOC_H__730EC364_0F70_4FBD_ABA3_3560558CDCF7__INCLUDED_)
- #define AFX_DIBDOC_H__730EC364_0F70_4FBD_ABA3_3560558CDCF7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "dibapi.h"
- #define WM_REALIZEPAL (WM_USER + 0x100)
- class CDIBDoc : public CDocument
- {
- // Attributes
- protected:
- HDIB m_hDIB;
- CPalette* m_palDIB;
- CSize m_sizeDoc;
- // HDIB m_hRightDIB;
- // char m_strRightFile[_MAX_PATH];
- // Operations
- public:
- void ReplaceHDIB(HDIB hDIB);
- void InitDIBData();
- HDIB GetHDIB() const
- { return m_hDIB; }
- CPalette* GetDocPalette() const
- { return m_palDIB; }
- CSize GetDocSizse() const
- { return m_sizeDoc; }
- void EdgeEnhance(int nAlgorithm);
- BOOL EnumFile(LPCTSTR lpszPathName);
- // HDIB GegtRightHDIB() const
- // {return m_hRightDIB;}
- protected: // create from serialization only
- CDIBDoc();
- DECLARE_DYNCREATE(CDIBDoc)
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDIBDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
- //}}AFX_VIRTUAL
- // virtual BOOL OpenRightFile(LPCTSTR lpszPathName);
- // Implementation
- public:
- virtual ~CDIBDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDIBDoc)
- //}}AFX_MSG
- afx_msg void OnRealizePal(WPARAM wParam, LPARAM lParam);
- afx_msg void OnImageProcess(UINT uID);
- afx_msg void OnUpdateImageProcess(CCmdUI *pCmdUI);
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DIBDOC_H__730EC364_0F70_4FBD_ABA3_3560558CDCF7__INCLUDED_)