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

📄 navigationdialog.h

📁 影像融合与融合精度评价源码影像融合与融合精度评价源码
💻 H
字号:
#if !defined(AFX_NAVIGATIONDIALOG_H__4728ACC1_ACF5_11D4_989A_0050BAF1EE45__INCLUDED_)
#define AFX_NAVIGATIONDIALOG_H__4728ACC1_ACF5_11D4_989A_0050BAF1EE45__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NavigationDialog.h : header file
//
#include "SmartEdit.h"
#include "resource.h"       // main symbols
#include "afx.h"

/////////////////////////////////////////////////////////////////////////////
// CNavigationDialog dialog
#define  WM_REDRAWDISPLAYRECT    WM_USER+10

class  CNavigationDialog : public CDialog
{
// Construction
public:
	CNavigationDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CNavigationDialog();
	CRect	DisplayRect;      //定义图象缩小显示区域
	CRect   rcDIB;
	CRect   rcDest;
	BOOL	bpbmpChanged;
	BOOL    bRedrawControl;

	CPoint  ptOffRed;

protected:
// Dialog Data
	//{{AFX_DATA(CNavigationDialog)
	enum { IDD = IDD_NAVIGATIONDIALOG };
	CSmartEdit	m_ZoomEdit;
	CString	m_scale_now;//将百分比字符显示在对话框中
	CSliderCtrl	m_NavigationCtrl;	
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNavigationDialog)
	protected:
	virtual void OnPaint();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnOK();
	virtual void OnCancel();
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

//Implementation
protected:
	float vRate;              //show rate : view_image / dialog_image
	CSize DocSize;            //view_image size
	CRect RedRect;            //RedRect为小红框的矩形大小
	enum {                   //current 
		NAVDLG_DO_NOTHING,
		NAVDLG_HAND_POINT,
		NAVDLG_HAND_CATCH,
		NAVDLG_HAND_MOVE
	} CursorStatus;
	HCURSOR m_HandPoint,m_HandCatch,m_HandMove; //设置不同光标
	BOOL bActiveView;         //有无图像显示
	BOOL bEditChanged; 
	CBitmap *pbmp;
	

	CBitmapButton	NavZoomIn;
	CBitmapButton	NavZoomOut;

	// Generated message map functions
	//{{AFX_MSG(CNavigationDialog)
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnChangeScaleEdit();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDefaultSize();
	afx_msg void OnDefaultLocation();
	afx_msg void OnHideNavdlg();
	afx_msg void OnUpdateDefaultSize(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDefaultLocation(CCmdUI* pCmdUI);
	virtual BOOL OnInitDialog();
	afx_msg void OnNavZoomout();
	afx_msg void OnNavZoomin();
	afx_msg void OnDoubleclickedNavZoomin();
	afx_msg void OnDoubleclickedNavZoomout();
	afx_msg void OnDestroy();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	afx_msg void RedrawDisplayRect();
	afx_msg void OnContextMenu(CWnd*, CPoint point);
};

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

#endif // !defined(AFX_NAVIGATIONDIALOG_H__4728ACC1_ACF5_11D4_989A_0050BAF1EE45__INCLUDED_)

⌨️ 快捷键说明

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