📄 gpcommandlineinfo.cpp
字号:
// GPCommandLineInfo.cpp: implementation of the CGPCommandLineInfo class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "cvenus.h"
#include "GPCommandLineInfo.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGPCommandLineInfo::CGPCommandLineInfo()
{
m_iAppType = 0;
}
CGPCommandLineInfo::~CGPCommandLineInfo()
{
}
void CGPCommandLineInfo::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast)
{
CString sArg(lpszParam);
if (bFlag)
{
if(!sArg.CompareNoCase("1"))
m_iAppType = 1;
if(!sArg.CompareNoCase("2"))
m_iAppType = 2;
if(!sArg.CompareNoCase("3"))
m_iAppType = 3;
if(!sArg.CompareNoCase("4"))
m_iAppType = 4;
}
// m_strFileName gets the first nonflag name
else if (m_strFileName.IsEmpty())
{
m_sArg = sArg ;
}
CCommandLineInfo::ParseParam(lpszParam, bFlag, bLast) ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -