📄 stdafx.cpp
字号:
// stdafx.cpp : source file that includes just the standard includes
// TrafficExecLaw.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
#include "TrafficExecLaw.h"
extern CTrafficExecLawApp theApp;
void WinExec(const TCHAR *lpFile,const TCHAR *lpParams)
{
SHELLEXECUTEINFO exeInfo;
memset(&exeInfo,0,sizeof(SHELLEXECUTEINFO));
exeInfo.cbSize =sizeof(SHELLEXECUTEINFO);
exeInfo.fMask=SEE_MASK_NOCLOSEPROCESS;
//exeInfo.hwnd;
exeInfo.lpVerb=L"open";
exeInfo.lpFile=lpFile;
exeInfo.lpParameters=lpParams;
exeInfo.lpDirectory=theApp.tcModuleFilePath;
exeInfo.nShow=SW_SHOWMAXIMIZED;
exeInfo.hInstApp=theApp.m_hInstance;
ShellExecuteEx(&exeInfo);
}
char * WcharsToChars(const WCHAR *pSr)
{
static char cChars[128];
if(::WideCharToMultiByte (CP_OEMCP,0,pSr,wcslen(pSr),cChars,128,0,0)>0)
return cChars;
return NULL;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -