ShowBitmapView.h
上传用户:turtfrt
上传日期:2022-06-23
资源大小:36k
文件大小:2k
- // ShowBitmapView.h : interface of the CShowBitmapView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SHOWBITMAPVIEW_H__659EE9B9_20AF_4E07_BE5A_F945CF2BDF1E__INCLUDED_)
- #define AFX_SHOWBITMAPVIEW_H__659EE9B9_20AF_4E07_BE5A_F945CF2BDF1E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CShowBitmapView : public CView
- {
- protected: // create from serialization only
- CShowBitmapView();
- DECLARE_DYNCREATE(CShowBitmapView)
- // Attributes
- public:
- CShowBitmapDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CShowBitmapView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ShowBitmap(CString BmpName);
- BOOL ShowJpgGif(CDC* pDC,CString strPath, int x, int y);
- CBitmap m_bitmap;
- CString extname;
- CString BmpName;
- int state;
- virtual ~CShowBitmapView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CShowBitmapView)
- afx_msg void OnFileOpen();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in ShowBitmapView.cpp
- inline CShowBitmapDoc* CShowBitmapView::GetDocument()
- { return (CShowBitmapDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SHOWBITMAPVIEW_H__659EE9B9_20AF_4E07_BE5A_F945CF2BDF1E__INCLUDED_)