ccmdlineex.cpp

来自「数控仿真与网络控制系统(雏形)」· C++ 代码 · 共 43 行

CPP
43
字号
#include "stdafx.h"
#include "NoteXpad.h"
#include "CmdLineEx.h"
#include "stdio.h"

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

CCmdLineEx::CCmdLineEx()
{
	m_FlagTop = 0;
	m_FlagLeft = 0;
}

CCmdLineEx::~CCmdLineEx()
{

}

void CCmdLineEx::ParseParam(const TCHAR* pszParam,BOOL bFlag,BOOL bLast)
{
	if(pszParam[0] == 'x')
	{
	 //Command line sent was for top and left placement of window.
		  CString Arg(pszParam);
		  Arg.Delete(0);
		  int comma = Arg.Find(",");
		  m_FlagLeft = atoi(Arg.Right(comma));
		  m_FlagTop = atoi(Arg.Left(comma));
		
		  CWinApp* theApp = (CWinApp*)AfxGetApp();
		  theApp->WriteProfileInt("Settings","Left",m_FlagLeft);
		  theApp->WriteProfileInt("Settings","Top",m_FlagTop);
		  return;
	}


	
	CCommandLineInfo::ParseParam(pszParam,bFlag,bLast);
}

⌨️ 快捷键说明

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