📄 bmpdemoview.h
字号:
// bmpDemoView.h : interface of the CBmpDemoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_BMPDEMOVIEW_H__D2A54E32_86D0_11D3_B73A_006008403496__INCLUDED_)
#define AFX_BMPDEMOVIEW_H__D2A54E32_86D0_11D3_B73A_006008403496__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ZftDialog.h"
#include "FilterDialog.h"
#include "DuiBiDu.h"
#include "ImagePropertyDialog.h"
#include "NoiseDialog.h"
#include "ZhongZhiFilterDialog.h"
#include "GreyDuiShuDialog.h"
#include "RotateDialog.h"
#include "memBitmap.h"
enum
{
ARROW,SELECT
};
class CBmpDemoView : public CScrollView
{
protected: // create from serialization only
CBmpDemoView();
DECLARE_DYNCREATE(CBmpDemoView)
// Attributes
public:
CBmpDemoDoc* GetDocument();
// Operations
public:
BOOL flag;
int ViewWidth,ViewHeight;
int OriX,OriY;
CBrush Brush,*OldBrush;
UINT ToolStatus;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBmpDemoView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBmpDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CBmpDemoView)
afx_msg void OnHchange();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLargen();
afx_msg void OnLessen();
afx_msg void OnRevert();
afx_msg void OnVchange();
afx_msg void OnCw();
afx_msg void OnCcw();
afx_msg void OnModule();
afx_msg void OnGrayize();
afx_msg void OnHistogram();
afx_msg void OnZftjhs();
afx_msg void OnBrighten();
afx_msg void OnDarken();
afx_msg void OnDft();
afx_msg void OnNdft();
afx_msg void OnFft();
afx_msg void OnNfft();
afx_msg void OnHpfilter();
afx_msg void OnLpfilter();
afx_msg void OnBpfilter();
afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
afx_msg void OnEditUndo();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnThpfilter();
afx_msg void OnTlpfilter();
afx_msg void OnExphpfilter();
afx_msg void OnExplpfilter();
afx_msg void OnEnlarge();
afx_msg void OnUpdateNfft(CCmdUI* pCmdUI);
afx_msg void OnUpdateNdft(CCmdUI* pCmdUI);
afx_msg void OnDestroy();
afx_msg void OnImageproperty();
afx_msg void OnNegative();
afx_msg void OnSinNoise();
afx_msg void OnSlowChange();
afx_msg void OnZhongZhiFilter();
afx_msg void OnGreyDuiShuBianHuan();
afx_msg void OnRotate();
afx_msg void OnRandomShow();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTestFunction();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void SetScroll();
};
#ifndef _DEBUG // debug version in bmpDemoView.cpp
inline CBmpDemoDoc* CBmpDemoView::GetDocument()
{ return (CBmpDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BMPDEMOVIEW_H__D2A54E32_86D0_11D3_B73A_006008403496__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -