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

📄 picimgdlg.h

📁 基于EVC开发的图片集文件浏览和图片浏览为一体的程序
💻 H
字号:
// PicImgDlg.h : header file
//

#include "FileScan.h"
#include "PictureSkim.h"
#if !defined(AFX_PICIMGDLG_H__719FD28E_42AD_477F_825A_7A3FDAA546ED__INCLUDED_)
#define AFX_PICIMGDLG_H__719FD28E_42AD_477F_825A_7A3FDAA546ED__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPicImgDlg dialog
//CDC m_dcMem;
class CPicImgDlg : public CDialog
{
// Construction
public:
	CPicImgDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CPicImgDlg)
	enum { IDD = IDD_PICIMG_DIALOG };
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPicImgDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void splitpath(CString path, CString &ext);
	HICON m_hIcon;
	// Generated message map functions
	//{{AFX_MSG(CPicImgDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnList();
	afx_msg void OnPaint();
	afx_msg void OnFullscreen();
	afx_msg BOOL OnNext();
	afx_msg BOOL OnPrevious();
	afx_msg void OnZoomin();
	afx_msg void OnZoomout();
	afx_msg void OnBack();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CString GetLastName();
	CString GetFirstName();
	BOOL InRect(int left, int top, int right, int bottom, int px, int py);
	~CPicImgDlg();
	HBITMAP ImgConvert(CString strFileName);
	int ShowImage();

	int m_rate;			// 缩放比例

	int ifullheight,ifullwidth;
	int iareaheight,iareawidth;

	BOOL m_fullflag;

	CString m_curfile;      //当前的文件全路径名。
	CString m_filename;
	CRect   m_rtname;       //文件名的区域。
	CRect	m_rtimage;		// 图象显示区大小
	CRect	m_rtopen;		// 图象打开
	CRect	m_rtfullscreen;	// 图象全屏
	CRect	m_rtprv;		// 前一张
	CRect	m_rtnext;		// 下一张
	CRect	m_rtzoomin;		// 放大
	CRect	m_rtzoomout;	// 缩小
	CRect	m_rtclose;		// 关闭
    CRect m_rthelp;

	CBitmap* m_curbmpptr;	// 当前显示图象
	CBitmap	m_bg;			// 背景图象
	
    //按键亮度
	HANDLE m_light;
	//按键信号
	BOOL m_signal;
};

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

#endif // !defined(AFX_PICIMGDLG_H__719FD28E_42AD_477F_825A_7A3FDAA546ED__INCLUDED_)

⌨️ 快捷键说明

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