📄 picimg.cpp
字号:
// PicImg.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "PicImg.h"
#include "PicImgDlg.h"
#include "PictureSkim.h"
#include "FullPic.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPicImgApp
BEGIN_MESSAGE_MAP(CPicImgApp, CWinApp)
//{{AFX_MSG_MAP(CPicImgApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPicImgApp construction
CPicImgApp::CPicImgApp()
: CWinApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CPicImgApp object
CPicImgApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CPicImgApp initialization
BOOL CPicImgApp::InitInstance()
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
//命令行接受是用启动此进程的数据
CString csCommandLine = theApp.m_lpCmdLine; // "\\Storage Card\\PICTURE
CPicImgDlg dlg;
if(!csCommandLine.IsEmpty())
{
dlg.m_curfile = csCommandLine;
}
else
{
PictureSkim mypicturescan;
int n_Response=mypicturescan.DoModal();
if(n_Response==IDOK)
{
// 文件正常打开
if(!mypicturescan.filename.IsEmpty())
{
dlg.m_curfile = mypicturescan.filename;
}
else
{
return FALSE;
}
}
else
{
return FALSE;
}
}
m_pMainWnd = &dlg;
dlg.DoModal();
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -