QuickView.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:2k
源码类别:

图片显示

开发平台:

Visual C++

  1. #if !defined(AFX_MATCHNAVVIEW_H__6ADA0CDB_7F39_417A_9B37_EB78EDD3C299__INCLUDED_)
  2. #define AFX_MATCHNAVVIEW_H__6ADA0CDB_7F39_417A_9B37_EB78EDD3C299__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MatchNavView.h : header file
  7. //
  8. //class CMatchImgDoc;
  9. class CDIBDoc;
  10. class CFileView;
  11. #include "dibapi.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CQuickView view
  14. class CQuickView : public CView
  15. {
  16. private:// Attributes
  17. CRect m_rcDIB;
  18. CRect m_rcDC;
  19. HDIB m_HDIB;
  20. char m_lpszFileName[MAX_PATH];
  21. // Operations
  22. private:
  23. CDIBDoc* GetDocument();
  24. void CalcRects(void);
  25. BOOL DrawIMG(void);
  26. public:
  27. void SetFileName(LPCTSTR lpszFileName = NULL);
  28. protected:
  29. CQuickView();           // protected constructor used by dynamic creation
  30. DECLARE_DYNCREATE(CQuickView)
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CQuickView)
  34. public:
  35. virtual void OnInitialUpdate();
  36. protected:
  37. virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. protected:
  41. virtual ~CQuickView();
  42. #ifdef _DEBUG
  43. virtual void AssertValid() const;
  44. virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46. // Generated message map functions
  47. protected:
  48. //{{AFX_MSG(CQuickView)
  49. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  50. afx_msg void OnSize(UINT nType, int cx, int cy);
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. /////////////////////////////////////////////////////////////////////////////
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_MATCHNAVVIEW_H__6ADA0CDB_7F39_417A_9B37_EB78EDD3C299__INCLUDED_)