QuickView.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:2k
- #if !defined(AFX_MATCHNAVVIEW_H__6ADA0CDB_7F39_417A_9B37_EB78EDD3C299__INCLUDED_)
- #define AFX_MATCHNAVVIEW_H__6ADA0CDB_7F39_417A_9B37_EB78EDD3C299__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MatchNavView.h : header file
- //
- //class CMatchImgDoc;
- class CDIBDoc;
- class CFileView;
- #include "dibapi.h"
- /////////////////////////////////////////////////////////////////////////////
- // CQuickView view
- class CQuickView : public CView
- {
- private:// Attributes
- CRect m_rcDIB;
- CRect m_rcDC;
- HDIB m_HDIB;
- char m_lpszFileName[MAX_PATH];
- // Operations
- private:
- CDIBDoc* GetDocument();
- void CalcRects(void);
- BOOL DrawIMG(void);
- public:
- void SetFileName(LPCTSTR lpszFileName = NULL);
- protected:
- CQuickView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CQuickView)
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CQuickView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CQuickView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CQuickView)
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MATCHNAVVIEW_H__6ADA0CDB_7F39_417A_9B37_EB78EDD3C299__INCLUDED_)