⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linjunjuanview.h

📁 图像处理软件,功能比较基础
💻 H
字号:
// linjunjuanView.h : interface of the CLinjunjuanView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LINJUNJUANVIEW_H__474A624E_547D_11D5_BD50_5254AB10D0A6__INCLUDED_)
#define AFX_LINJUNJUANVIEW_H__474A624E_547D_11D5_BD50_5254AB10D0A6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

static int  oldrow;
static int  oldcol;
#include "Bright1.h"

#ifndef CPIXEL_H
#define CPIXEL_H
#include "pixel.h"
#endif
#ifndef WZBITMAP_H
#define WZBITMAP_H
#include "wzdbitmap.h"
#endif
#ifndef UT_PARAMETER_H
#define UT_PARAMETER_H
#include "UT_PARAMETER.h"
#endif
#ifndef DRAWRECTANGLE_H
#define DRAWRECTANGLE_H
#include "DrawRectangle.h"
#endif
class CPixel;
class CLinjunjuanView : public CScrollView
{
private:
	CPixel *m_pDlg;

	
protected: // create from serialization only
	CLinjunjuanView();
	DECLARE_DYNCREATE(CLinjunjuanView)
	void OnInitial();
    void DrawBoxOutLine(POINT ptBeg,POINT ptEnd);
	BOOL WriteWindowPicToFile(LPTSTR szFile, CWnd* pWnd);
// Attributes
public:
	CLinjunjuanDoc* GetDocument();
	int DX,DY;
	int sm_cxframe;
	int sm_cyframe;
	int sm_cymaximized;
	int sm_cxmaximized;
	Picture pic;
	RECT rectdest;
	RECT rectdib;
	BOOL flagfresh;
	CPalette *pPal;
	HDIB hDib;
	CPoint nowpos;
	BOOL m_pDlgexit;
    POINT ptBeg,ptEnd,ptBoxBeg,ptBoxEnd;
	BOOL fBlocking ,fValidBox;
	CDC *currentDC;
	BOOL rectSelect;
	POINT mousepoint;
	CString xtmp,ytmp;
	BOOL fCircling;
	BOOL fShowCircling;
	POINT ptEllipseBeg2,ptEllipseEnd2,ptEllipseBeg1,ptEllipseEnd1;
	BOOL first;
	int inner_circle,outer_circle;
	BOOL drawmark;
	BOOL drawmark_all;
	POINT markfirst1,markend1,markfirst2,markend2,markfirst3,markend3;
    POINT markfirst_all;
	int height;



// Operations
public:
	LRESULT OnHotKey(WPARAM wParam,LPARAM lParam);
	LRESULT OnGoodBye(WPARAM wParam,LPARAM lParam);
	//void OnInitial();

// Overrides
protected:
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLinjunjuanView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CLinjunjuanView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLinjunjuanView)
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnDestroy();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnBrightContrast();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnCopy();
	afx_msg void OnPaste();
	afx_msg void OnCheckclip();
	afx_msg void OnImageSelectrect();
	afx_msg void OnUpdateImageSelectrect(CCmdUI* pCmdUI);
	afx_msg void OnImageReverse();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnUpdateCopy(CCmdUI* pCmdUI);
	afx_msg void OnSeePixel();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDig1000();
	afx_msg void OnUpdateSeePixel(CCmdUI* pCmdUI);
	afx_msg void OnDrawLine();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnUpdateDig1000(CCmdUI* pCmdUI);
	afx_msg void OnProduceMask();
	afx_msg void OnAirDraw();
	afx_msg void OnAllDraw();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in linjunjuanView.cpp
inline CLinjunjuanDoc* CLinjunjuanView::GetDocument()
   { return (CLinjunjuanDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LINJUNJUANVIEW_H__474A624E_547D_11D5_BD50_5254AB10D0A6__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -