📄 recprocess.cpp
字号:
// RecProcess.cpp: implementation of the CRecProcess class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
#include "ShowProcedure.h"
CRecProcess::CRecProcess()
{
CShowProcedure * pShowProcedure = new CShowProcedure;
ASSERT(pShowProcedure);
pShowProcedure->Create(CShowProcedure::IDD);
m_pProcess = pShowProcedure;
}
CRecProcess::~CRecProcess()
{
if (m_pProcess)
{
delete ((CShowProcedure*)m_pProcess);
}
}
BOOL CRecProcess::Run(CString strPath,CString &strResult,BOOL bDebug)
{
CShowProcedure pProcess;
pProcess.DoModal();
/*
BOOL bSuccess = FALSE;
if (m_pProcess)
{
if (bDebug)
{
((CShowProcedure*)m_pProcess)->ShowWindow(SW_SHOW);
}
else
{
((CShowProcedure*)m_pProcess)->ShowWindow(SW_HIDE);
}
bSuccess = ((CShowProcedure*)m_pProcess)->Run(strPath);
} */
return TRUE;
}
CImage CRecProcess::GetOrgImg()
{
if (m_pProcess)
{
return ((CShowProcedure*)m_pProcess)->m_ImgOrg;
}
else
{
CImage img;
return img;
}
}
CImage CRecProcess::GetVPImg()
{
if (m_pProcess)
{
return ((CShowProcedure*)m_pProcess)->m_ImgChePai;
}
else
{
CImage img;
return img;
}
}
CString CRecProcess::GetRecResult()
{
if (m_pProcess)
{
return ((CShowProcedure*)m_pProcess)->m_strResult;
}
else
{
return "";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -