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

📄 imageviewerdlg.cpp

📁 wince(eMbedded Visual C++ ) 图片浏览器的源代码。
💻 CPP
字号:
// ImageViewerDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ImageViewer.h"
#include "ImageViewerDlg.h"
#include <imaging.h>
#include <initguid.h>
#include <imgguids.h>


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


/////////////////////////////////////////////////////////////////////////////
// Global Variable
	IImage * m_pImage = NULL;
	IImagingFactory * m_pImagingFactory = NULL;
	int iFullWidth = GetSystemMetrics(SM_CXSCREEN); 
	int iFullHeight = GetSystemMetrics(SM_CYSCREEN); 

	int iTitleBar = 25;
	int iControlBar = 40;
/////////////////////////////////////////////////////////////////////////////
// CImageViewerDlg dialog

CImageViewerDlg::CImageViewerDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CImageViewerDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CImageViewerDlg)
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);

	m_bTerminate=false;
	m_bRunning=false;
	
}

void CImageViewerDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CImageViewerDlg)
	DDX_Control(pDX, IDC_SHOWBMP, m_ShowBMP);
	DDX_Control(pDX, ID_APP_EXIT, m_exitbutton);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CImageViewerDlg, CDialog)
	//{{AFX_MSG_MAP(CImageViewerDlg)
	ON_WM_PAINT()
	ON_NOTIFY(NM_DBLCLK, IDC_THUMBNAIL, OnDblclkThumbnail)
	//}}AFX_MSG_MAP
	ON_MESSAGE(_DEVICE_EVENT,OnChildFire)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CImageViewerDlg message handlers

BOOL CImageViewerDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here
	//癸杠

⌨️ 快捷键说明

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