📄 imageview.h
字号:
// ImageView.h : interface of the CImageView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMAGEVIEW_H__2DB785EC_7059_11D5_B1FF_F3FB5DFF5659__INCLUDED_)
#define AFX_IMAGEVIEW_H__2DB785EC_7059_11D5_B1FF_F3FB5DFF5659__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CImageView : public CView
{
protected: // create from serialization only
CImageView();
DECLARE_DYNCREATE(CImageView)
// Attributes
public:
CImageDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CImageView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
HDC hMemDC4;
HDC hMemDC3;
HDC hMemDC2;
HDC hMemDC1;
int m_nID;
void SaveBitmapToFile(HBITMAP hBitmap ,LPSTR lpFileName);
HBITMAP CopyScreenToBitmap(LPRECT lpRect);
DWORD m_dwRop;
UINT m_nFlag4;
UINT m_nFlag3;
UINT m_nFlag2;
UINT m_nFlag1;
int m_nOldY1;
int m_nOldX1;
bool m_bCanMove1;
int m_nY1;
int m_nX1;
int m_nHeight1;
int m_nWidth1;
CString m_sPath1;
int m_nOldY2;
int m_nOldX2;
bool m_bCanMove2;
int m_nY2;
int m_nX2;
int m_nHeight2;
int m_nWidth2;
CString m_sPath2;
int m_nOldY3;
int m_nOldX3;
bool m_bCanMove3;
int m_nY3;
int m_nX3;
int m_nHeight3;
int m_nWidth3;
CString m_sPath3;
int m_nOldY4;
int m_nOldX4;
bool m_bCanMove4;
int m_nY4;
int m_nX4;
int m_nHeight4;
int m_nWidth4;
CString m_sPath4;
virtual ~CImageView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CImageView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnOpen1C();
afx_msg void OnOpen2C();
afx_msg void OnOpen3C();
afx_msg void OnOpen4C();
afx_msg void OnUnie();
afx_msg void OnUndo();
afx_msg void OnSave();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnNew();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ImageView.cpp
inline CImageDoc* CImageView::GetDocument()
{ return (CImageDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IMAGEVIEW_H__2DB785EC_7059_11D5_B1FF_F3FB5DFF5659__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -