📄 globaldef.cpp
字号:
#include "StdAfx.h"
#include "GlobalDef.h"
/////////////////////////////////////////////////////////////////////
//
YAxisRange g_sRange;
XAxisRange g_sXRange;
AxisRange_Zoom g_sYAxisRange_Zoom;
AxisRange_Zoom g_sXAxisRange_Zoom;
GlobalArgInfo g_sGlobalArgInfo;
char g_pstrPath[APPPATHLEN];
CString g_strBattPath;
//////////////////////////////////////////////////////////////////////
//
void pltCurrentPath(char pstrPath[APPPATHLEN], int maxPathLen)
{
if(::AfxIsValidAddress(pstrPath, maxPathLen))
{
::GetModuleFileName(::AfxGetInstanceHandle(), pstrPath, APPPATHLEN);
CString strPath(pstrPath), strLast;
int nIndex = strPath.ReverseFind('\\');
strLast = strPath.Left(nIndex);
strPath.Empty();
//
pstrPath = ::strcpy(pstrPath, (LPCTSTR)strLast);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -