.gitignore
@@ -55,3 +55,4 @@ SourceCode/Bond/x64/Debug/Master.dat SourceCode/Bond/x64/Debug/Config/signals.csv SourceCode/Bond/x64/Debug/Config/robot_offset.ini SourceCode/Bond/EAPSimulator/x64/ SourceCode/Bond/EAPSimulator/EAPSimulator.cpp
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,107 @@  // EAPSimulator.cpp: å®ä¹åºç¨ç¨åºçç±»è¡ä¸ºã // #include "pch.h" #include "framework.h" #include "EAPSimulator.h" #include "EAPSimulatorDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CEAPSimulatorApp BEGIN_MESSAGE_MAP(CEAPSimulatorApp, CWinApp) ON_COMMAND(ID_HELP, &CWinApp::OnHelp) END_MESSAGE_MAP() // CEAPSimulatorApp æé CEAPSimulatorApp::CEAPSimulatorApp() { // æ¯æéæ°å¯å¨ç®¡çå¨ m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; // TODO: 卿¤å¤æ·»å æé 代ç ï¼ // å°ææéè¦çåå§åæ¾ç½®å¨ InitInstance ä¸ } // å¯ä¸ç CEAPSimulatorApp 对象 CEAPSimulatorApp theApp; // CEAPSimulatorApp åå§å BOOL CEAPSimulatorApp::InitInstance() { // 妿ä¸ä¸ªè¿è¡å¨ Windows XP ä¸çåºç¨ç¨åºæ¸ åæå®è¦ // ä½¿ç¨ ComCtl32.dll çæ¬ 6 ææ´é«çæ¬æ¥å¯ç¨å¯è§åæ¹å¼ï¼ //åéè¦ InitCommonControlsEx()ã å¦åï¼å°æ æ³å建çªå£ã INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); // å°å®è®¾ç½®ä¸ºå æ¬ææè¦å¨åºç¨ç¨åºä¸ä½¿ç¨ç // å ¬å ±æ§ä»¶ç±»ã InitCtrls.dwICC = ICC_WIN95_CLASSES; InitCommonControlsEx(&InitCtrls); CWinApp::InitInstance(); AfxEnableControlContainer(); // å建 shell 管çå¨ï¼ä»¥é²å¯¹è¯æ¡å å« // ä»»ä½ shell æ è§å¾æ§ä»¶æ shell å表è§å¾æ§ä»¶ã CShellManager *pShellManager = new CShellManager; // æ¿æ´»âWindows Nativeâè§è§ç®¡çå¨ï¼ä»¥ä¾¿å¨ MFC æ§ä»¶ä¸å¯ç¨ä¸»é¢ CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows)); // æ ååå§å // 妿æªä½¿ç¨è¿äºåè½å¹¶å¸æåå° // æç»å¯æ§è¡æä»¶ç大å°ï¼ååºç§»é¤ä¸å // ä¸éè¦çç¹å®åå§åä¾ç¨ // æ´æ¹ç¨äºåå¨è®¾ç½®ç注å表项 // TODO: åºéå½ä¿®æ¹è¯¥åç¬¦ä¸²ï¼ // ä¾å¦ä¿®æ¹ä¸ºå ¬å¸æç»ç»å SetRegistryKey(_T("åºç¨ç¨åºå导çæçæ¬å°åºç¨ç¨åº")); CEAPSimulatorDlg dlg; m_pMainWnd = &dlg; INT_PTR nResponse = dlg.DoModal(); if (nResponse == IDOK) { // TODO: 卿¤æ¾ç½®å¤ç使¶ç¨ // âç¡®å®âæ¥å ³éå¯¹è¯æ¡ç代ç } else if (nResponse == IDCANCEL) { // TODO: 卿¤æ¾ç½®å¤ç使¶ç¨ // âåæ¶âæ¥å ³éå¯¹è¯æ¡ç代ç } else if (nResponse == -1) { TRACE(traceAppMsg, 0, "è¦å: å¯¹è¯æ¡å建失败ï¼åºç¨ç¨åºå°æå¤ç»æ¢ã\n"); TRACE(traceAppMsg, 0, "è¦å: 妿æ¨å¨å¯¹è¯æ¡ä¸ä½¿ç¨ MFC æ§ä»¶ï¼åæ æ³ #define _AFX_NO_MFC_CONTROLS_IN_DIALOGSã\n"); } // å é¤ä¸é¢å建ç shell 管çå¨ã if (pShellManager != nullptr) { delete pShellManager; } #if !defined(_AFXDLL) && !defined(_AFX_NO_MFC_CONTROLS_IN_DIALOGS) ControlBarCleanUp(); #endif // ç±äºå¯¹è¯æ¡å·²å ³éï¼æä»¥å°è¿å FALSE 以便éåºåºç¨ç¨åºï¼ // è䏿¯å¯å¨åºç¨ç¨åºçæ¶æ¯æ³µã return FALSE; } SourceCode/Bond/EAPSimulator/EAPSimulator.h
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,32 @@  // EAPSimulator.h: PROJECT_NAME åºç¨ç¨åºç主头æä»¶ // #pragma once #ifndef __AFXWIN_H__ #error "å¨å 嫿¤æä»¶ä¹åå å« 'pch.h' ä»¥çæ PCH" #endif #include "resource.h" // ä¸»ç¬¦å· // CEAPSimulatorApp: // æå ³æ¤ç±»çå®ç°ï¼è¯·åé EAPSimulator.cpp // class CEAPSimulatorApp : public CWinApp { public: CEAPSimulatorApp(); // éå public: virtual BOOL InitInstance(); // å®ç° DECLARE_MESSAGE_MAP() }; extern CEAPSimulatorApp theApp; SourceCode/Bond/EAPSimulator/EAPSimulator.rcBinary files differ
SourceCode/Bond/EAPSimulator/EAPSimulator.vcxproj
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,218 @@ <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|x64"> <Configuration>Debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|x64"> <Configuration>Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <VCProjectVersion>16.0</VCProjectVersion> <ProjectGuid>{9EA43050-B71C-47A7-AC90-F0D7A88C5F50}</ProjectGuid> <Keyword>MFCProj</Keyword> <RootNamespace>EAPSimulator</RootNamespace> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> <UseOfMfc>Dynamic</UseOfMfc> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <UseOfMfc>Dynamic</UseOfMfc> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <CharacterSet>MultiByte</CharacterSet> <UseOfMfc>Dynamic</UseOfMfc> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <UseOfMfc>Dynamic</UseOfMfc> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="Shared"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LinkIncremental>true</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <LinkIncremental>true</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <LinkIncremental>false</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LinkIncremental>false</LinkIncremental> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ClCompile> <PrecompiledHeader>Use</PrecompiledHeader> <WarningLevel>Level3</WarningLevel> <SDLCheck>true</SDLCheck> <PreprocessorDefinitions>_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> </ClCompile> <Link> <SubSystem>Windows</SubSystem> </Link> <Midl> <MkTypLibCompatible>false</MkTypLibCompatible> <ValidateAllParameters>true</ValidateAllParameters> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> </Midl> <ResourceCompile> <Culture>0x0804</Culture> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ResourceCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> <PrecompiledHeader>Use</PrecompiledHeader> <WarningLevel>Level3</WarningLevel> <SDLCheck>true</SDLCheck> <PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> </ClCompile> <Link> <SubSystem>Windows</SubSystem> </Link> <Midl> <MkTypLibCompatible>false</MkTypLibCompatible> <ValidateAllParameters>true</ValidateAllParameters> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> </Midl> <ResourceCompile> <Culture>0x0804</Culture> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ResourceCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ClCompile> <PrecompiledHeader>Use</PrecompiledHeader> <WarningLevel>Level3</WarningLevel> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <SDLCheck>true</SDLCheck> <PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> <Midl> <MkTypLibCompatible>false</MkTypLibCompatible> <ValidateAllParameters>true</ValidateAllParameters> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> </Midl> <ResourceCompile> <Culture>0x0804</Culture> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ResourceCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ClCompile> <PrecompiledHeader>Use</PrecompiledHeader> <WarningLevel>Level3</WarningLevel> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <SDLCheck>true</SDLCheck> <PreprocessorDefinitions>_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> <Midl> <MkTypLibCompatible>false</MkTypLibCompatible> <ValidateAllParameters>true</ValidateAllParameters> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> </Midl> <ResourceCompile> <Culture>0x0804</Culture> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ResourceCompile> </ItemDefinitionGroup> <ItemGroup> <ClInclude Include="EAPSimulator.h" /> <ClInclude Include="EAPSimulatorDlg.h" /> <ClInclude Include="framework.h" /> <ClInclude Include="pch.h" /> <ClInclude Include="Resource.h" /> <ClInclude Include="targetver.h" /> </ItemGroup> <ItemGroup> <ClCompile Include="EAPSimulator.cpp" /> <ClCompile Include="EAPSimulatorDlg.cpp" /> <ClCompile Include="pch.cpp"> <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader> <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader> </ClCompile> </ItemGroup> <ItemGroup> <ResourceCompile Include="EAPSimulator.rc" /> </ItemGroup> <ItemGroup> <None Include="res\EAPSimulator.rc2" /> </ItemGroup> <ItemGroup> <Image Include="res\EAPSimulator.ico" /> </ItemGroup> <ItemGroup> <Manifest Include="res\application.exe.manifest" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> </Project> SourceCode/Bond/EAPSimulator/EAPSimulator.vcxproj.filters
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,66 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Filter Include="æºæä»¶"> <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> </Filter> <Filter Include="头æä»¶"> <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> </Filter> <Filter Include="èµæºæä»¶"> <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> </Filter> </ItemGroup> <ItemGroup> <ClInclude Include="EAPSimulator.h"> <Filter>头æä»¶</Filter> </ClInclude> <ClInclude Include="EAPSimulatorDlg.h"> <Filter>头æä»¶</Filter> </ClInclude> <ClInclude Include="framework.h"> <Filter>头æä»¶</Filter> </ClInclude> <ClInclude Include="targetver.h"> <Filter>头æä»¶</Filter> </ClInclude> <ClInclude Include="Resource.h"> <Filter>头æä»¶</Filter> </ClInclude> <ClInclude Include="pch.h"> <Filter>头æä»¶</Filter> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="EAPSimulator.cpp"> <Filter>æºæä»¶</Filter> </ClCompile> <ClCompile Include="EAPSimulatorDlg.cpp"> <Filter>æºæä»¶</Filter> </ClCompile> <ClCompile Include="pch.cpp"> <Filter>æºæä»¶</Filter> </ClCompile> </ItemGroup> <ItemGroup> <ResourceCompile Include="EAPSimulator.rc"> <Filter>èµæºæä»¶</Filter> </ResourceCompile> </ItemGroup> <ItemGroup> <None Include="res\EAPSimulator.rc2"> <Filter>èµæºæä»¶</Filter> </None> </ItemGroup> <ItemGroup> <Image Include="res\EAPSimulator.ico"> <Filter>èµæºæä»¶</Filter> </Image> </ItemGroup> <ItemGroup> <Manifest Include="res\application.exe.manifest" /> </ItemGroup> </Project> SourceCode/Bond/EAPSimulator/EAPSimulator.vcxproj.user
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup /> </Project> SourceCode/Bond/EAPSimulator/EAPSimulatorDlg.cpp
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,155 @@  // EAPSimulatorDlg.cpp: å®ç°æä»¶ // #include "pch.h" #include "framework.h" #include "EAPSimulator.h" #include "EAPSimulatorDlg.h" #include "afxdialogex.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // ç¨äºåºç¨ç¨åºâå ³äºâèå项ç CAboutDlg å¯¹è¯æ¡ class CAboutDlg : public CDialogEx { public: CAboutDlg(); // å¯¹è¯æ¡æ°æ® #ifdef AFX_DESIGN_TIME enum { IDD = IDD_ABOUTBOX }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV æ¯æ // å®ç° protected: DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialogEx(IDD_ABOUTBOX) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx) END_MESSAGE_MAP() // CEAPSimulatorDlg å¯¹è¯æ¡ CEAPSimulatorDlg::CEAPSimulatorDlg(CWnd* pParent /*=nullptr*/) : CDialogEx(IDD_EAPSIMULATOR_DIALOG, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CEAPSimulatorDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CEAPSimulatorDlg, CDialogEx) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() END_MESSAGE_MAP() // CEAPSimulatorDlg æ¶æ¯å¤çç¨åº BOOL CEAPSimulatorDlg::OnInitDialog() { CDialogEx::OnInitDialog(); // å°âå ³äº...âèå项添å å°ç³»ç»èåä¸ã // IDM_ABOUTBOX å¿ é¡»å¨ç³»ç»å½ä»¤èå´å ã ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != nullptr) { BOOL bNameValid; CString strAboutMenu; bNameValid = strAboutMenu.LoadString(IDS_ABOUTBOX); ASSERT(bNameValid); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // 设置æ¤å¯¹è¯æ¡ç徿 ã å½åºç¨ç¨åºä¸»çªå£ä¸æ¯å¯¹è¯æ¡æ¶ï¼æ¡æ¶å°èªå¨ // æ§è¡æ¤æä½ SetIcon(m_hIcon, TRUE); // è®¾ç½®å¤§å¾æ SetIcon(m_hIcon, FALSE); // 设置å°å¾æ // TODO: 卿¤æ·»å é¢å¤çåå§å代ç return TRUE; // é¤éå°ç¦ç¹è®¾ç½®å°æ§ä»¶ï¼å¦åè¿å TRUE } void CEAPSimulatorDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialogEx::OnSysCommand(nID, lParam); } } // 妿åå¯¹è¯æ¡æ·»å æå°åæé®ï¼åéè¦ä¸é¢ç代ç // æ¥ç»å¶è¯¥å¾æ ã 对äºä½¿ç¨ææ¡£/è§å¾æ¨¡åç MFC åºç¨ç¨åºï¼ // è¿å°ç±æ¡æ¶èªå¨å®æã void CEAPSimulatorDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // ç¨äºç»å¶ç设å¤ä¸ä¸æ SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); // ä½¿å¾æ å¨å·¥ä½åºç©å½¢ä¸å± ä¸ int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // ç»å¶å¾æ dc.DrawIcon(x, y, m_hIcon); } else { CDialogEx::OnPaint(); } } //å½ç¨æ·æå¨æå°åçªå£æ¶ç³»ç»è°ç¨æ¤å½æ°åå¾å æ //æ¾ç¤ºã HCURSOR CEAPSimulatorDlg::OnQueryDragIcon() { return static_cast<HCURSOR>(m_hIcon); } SourceCode/Bond/EAPSimulator/EAPSimulatorDlg.h
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,34 @@  // EAPSimulatorDlg.h: 头æä»¶ // #pragma once // CEAPSimulatorDlg å¯¹è¯æ¡ class CEAPSimulatorDlg : public CDialogEx { // æé public: CEAPSimulatorDlg(CWnd* pParent = nullptr); // æ åæé 彿° // å¯¹è¯æ¡æ°æ® #ifdef AFX_DESIGN_TIME enum { IDD = IDD_EAPSIMULATOR_DIALOG }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV æ¯æ // å®ç° protected: HICON m_hIcon; // çæçæ¶æ¯æ å°å½æ° virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() }; SourceCode/Bond/EAPSimulator/Resource.h
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,21 @@ //{{NO_DEPENDENCIES}} // Microsoft Visual C++ çæçå 嫿件ã // ç± EAPSimulator.rc ä½¿ç¨ // #define IDR_MAINFRAME 128 #define IDM_ABOUTBOX 0x0010 #define IDD_ABOUTBOX 100 #define IDS_ABOUTBOX 101 #define IDD_EAPSIMULATOR_DIALOG 102 // æ°å¯¹è±¡çä¸ä¸ç»é»è®¤å¼ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 129 #define _APS_NEXT_CONTROL_VALUE 1000 #define _APS_NEXT_SYMED_VALUE 101 #define _APS_NEXT_COMMAND_VALUE 32771 #endif #endif SourceCode/Bond/EAPSimulator/framework.h
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,49 @@ #pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // ä» Windows 头䏿餿å°ä½¿ç¨çèµæ #endif #include "targetver.h" #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // æäº CString æé 彿°å°æ¯æ¾å¼ç // å ³é MFC çä¸äºå¸¸è§ä¸ç»å¸¸å¯æ¾å¿å¿½ç¥çéèè¦åæ¶æ¯ #define _AFX_ALL_WARNINGS #include <afxwin.h> // MFC æ ¸å¿ç»ä»¶åæ åç»ä»¶ #include <afxext.h> // MFC æ©å± #include <afxdisp.h> // MFC èªå¨åç±» #ifndef _AFX_NO_OLE_SUPPORT #include <afxdtctl.h> // MFC 对 Internet Explorer 4 å ¬å ±æ§ä»¶çæ¯æ #endif #ifndef _AFX_NO_AFXCMN_SUPPORT #include <afxcmn.h> // MFC 对 Windows å ¬å ±æ§ä»¶çæ¯æ #endif // _AFX_NO_AFXCMN_SUPPORT #include <afxcontrolbars.h> // MFC æ¯æåè½åºåæ§å¶æ¡ #ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_X64 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") #else #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #endif #endif SourceCode/Bond/EAPSimulator/pch.cpp
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,5 @@ // pch.cpp: ä¸é¢ç¼è¯æ 头对åºçæºæä»¶ #include "pch.h" // å½ä½¿ç¨é¢ç¼è¯ç头æ¶ï¼éè¦ä½¿ç¨æ¤æºæä»¶ï¼ç¼è¯æè½æåã SourceCode/Bond/EAPSimulator/pch.h
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,13 @@ // pch.h: è¿æ¯é¢ç¼è¯æ 头æä»¶ã // 䏿¹ååºçæä»¶ä» ç¼è¯ä¸æ¬¡ï¼æé«äºå°æ¥çæççææ§è½ã // è¿è¿å°å½±å IntelliSense æ§è½ï¼å æ¬ä»£ç 宿å许å¤ä»£ç æµè§åè½ã // 使¯ï¼å¦ææ¤å¤ååºçæä»¶ä¸çä»»ä½ä¸ä¸ªå¨çæä¹é´ææ´æ°ï¼å®ä»¬å ¨é¨é½å°è¢«éæ°ç¼è¯ã // 请å¿å¨æ¤å¤æ·»å è¦é¢ç¹æ´æ°çæä»¶ï¼è¿å°ä½¿å¾æ§è½ä¼å¿æ æã #ifndef PCH_H #define PCH_H // æ·»å è¦å¨æ¤å¤é¢ç¼è¯çæ 头 #include "framework.h" #endif //PCH_H SourceCode/Bond/EAPSimulator/res/EAPSimulator.ico
SourceCode/Bond/EAPSimulator/res/EAPSimulator.rc2Binary files differ
SourceCode/Bond/EAPSimulator/res/application.exe.manifest
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,20 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity name="XP style manifest" processorArchitecture="amd64" version="1.0.0.0" type="win32"/> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="amd64" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> </assembly> SourceCode/Bond/EAPSimulator/targetver.h
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,8 @@ #pragma once // å æ¬ SDKDDKVer.h å°å®ä¹å¯ç¨çæé«çæ¬ç Windows å¹³å°ã //妿è¦ä¸ºä»¥åç Windows å¹³å°çæåºç¨ç¨åºï¼è¯·å æ¬ WinSDKVer.hï¼å¹¶ // å° _WIN32_WINNT å®è®¾ç½®ä¸ºè¦æ¯æçå¹³å°ï¼ç¶ååå æ¬ SDKDDKVer.hã #include <SDKDDKVer.h> SourceCode/Bond/GangBond2860.sln
@@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.23107.0 # Visual Studio Version 16 VisualStudioVersion = 16.0.31729.503 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BEQLibrary", "BEQLibrary\BEQLibrary.vcxproj", "{8421CE64-06F9-48F4-A3F3-ACFB683C94D4}" EndProject @@ -14,6 +14,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Servo", "Servo\Servo.vcxproj", "{66ADACE5-3166-4D1F-B30B-DE5E01FB01A2}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BoounionPLC", "BoounionPLC\BoounionPLC.vcxproj", "{6DC0600E-5588-4033-A281-3626A4F74B67}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EAPSimulator", "EAPSimulator\EAPSimulator.vcxproj", "{9EA43050-B71C-47A7-AC90-F0D7A88C5F50}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -71,6 +73,14 @@ {6DC0600E-5588-4033-A281-3626A4F74B67}.Release|x64.Build.0 = Release|x64 {6DC0600E-5588-4033-A281-3626A4F74B67}.Release|x86.ActiveCfg = Release|Win32 {6DC0600E-5588-4033-A281-3626A4F74B67}.Release|x86.Build.0 = Release|Win32 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Debug|x64.ActiveCfg = Debug|x64 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Debug|x64.Build.0 = Debug|x64 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Debug|x86.ActiveCfg = Debug|Win32 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Debug|x86.Build.0 = Debug|Win32 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Release|x64.ActiveCfg = Release|x64 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Release|x64.Build.0 = Release|x64 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Release|x86.ActiveCfg = Release|Win32 {9EA43050-B71C-47A7-AC90-F0D7A88C5F50}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE