diff --git a/WNT/menu2.exe/Release/about.obj b/WNT/menu2.exe/Release/about.obj index 6fa0fe4..c41c823 100644 Binary files a/WNT/menu2.exe/Release/about.obj and b/WNT/menu2.exe/Release/about.obj differ diff --git a/WNT/menu2.exe/Release/menu2.log b/WNT/menu2.exe/Release/menu2.log index e40774d..32be472 100644 --- a/WNT/menu2.exe/Release/menu2.log +++ b/WNT/menu2.exe/Release/menu2.log @@ -1,7 +1,8 @@ C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: 面向 Windows XP 的支持已被弃用,将来的 Visual Studio 版本不再提供该支持。请访问 https://go.microsoft.com/fwlink/?linkid=2023588,获取详细信息。 + menu2Dlg.cpp 正在生成代码 - 0 of 263 functions ( 0.0%) were compiled, the rest were copied from previous compilation. + 4 of 264 functions ( 1.5%) were compiled, the rest were copied from previous compilation. 0 functions were new in current compilation - 0 functions had inline decision re-evaluated but remain unchanged + 1 functions had inline decision re-evaluated but remain unchanged 已完成代码的生成 menu2.vcxproj -> C:\Users\351\Documents\Visual Studio 2017\Projects\cec20\Release\menu2.exe diff --git a/WNT/menu2.exe/Release/menu2.res b/WNT/menu2.exe/Release/menu2.res index 95c7a80..8df59e8 100644 Binary files a/WNT/menu2.exe/Release/menu2.res and b/WNT/menu2.exe/Release/menu2.res differ diff --git a/WNT/menu2.exe/Release/menu2.tlog/CL.command.1.tlog b/WNT/menu2.exe/Release/menu2.tlog/CL.command.1.tlog index 9ece8ac..5c0fbc5 100644 Binary files a/WNT/menu2.exe/Release/menu2.tlog/CL.command.1.tlog and b/WNT/menu2.exe/Release/menu2.tlog/CL.command.1.tlog differ diff --git a/WNT/menu2.exe/Release/menu2.tlog/CL.read.1.tlog b/WNT/menu2.exe/Release/menu2.tlog/CL.read.1.tlog index 6cae3e9..a4dd843 100644 Binary files a/WNT/menu2.exe/Release/menu2.tlog/CL.read.1.tlog and b/WNT/menu2.exe/Release/menu2.tlog/CL.read.1.tlog differ diff --git a/WNT/menu2.exe/Release/menu2.tlog/CL.write.1.tlog b/WNT/menu2.exe/Release/menu2.tlog/CL.write.1.tlog index 5280b2d..d1b940c 100644 Binary files a/WNT/menu2.exe/Release/menu2.tlog/CL.write.1.tlog and b/WNT/menu2.exe/Release/menu2.tlog/CL.write.1.tlog differ diff --git a/WNT/menu2.exe/Release/menu2.tlog/link.read.1.tlog b/WNT/menu2.exe/Release/menu2.tlog/link.read.1.tlog index 7457a34..8102f7c 100644 Binary files a/WNT/menu2.exe/Release/menu2.tlog/link.read.1.tlog and b/WNT/menu2.exe/Release/menu2.tlog/link.read.1.tlog differ diff --git a/WNT/menu2.exe/Release/menu2.tlog/menu2.write.1u.tlog b/WNT/menu2.exe/Release/menu2.tlog/menu2.write.1u.tlog index 4d19a52..e052a66 100644 Binary files a/WNT/menu2.exe/Release/menu2.tlog/menu2.write.1u.tlog and b/WNT/menu2.exe/Release/menu2.tlog/menu2.write.1u.tlog differ diff --git a/WNT/menu2.exe/Release/menu2Dlg.obj b/WNT/menu2.exe/Release/menu2Dlg.obj index 86cdf6f..3ae8cd4 100644 Binary files a/WNT/menu2.exe/Release/menu2Dlg.obj and b/WNT/menu2.exe/Release/menu2Dlg.obj differ diff --git a/WNT/menu2.exe/Release/vc141.pdb b/WNT/menu2.exe/Release/vc141.pdb index 23ded5e..ab094ff 100644 Binary files a/WNT/menu2.exe/Release/vc141.pdb and b/WNT/menu2.exe/Release/vc141.pdb differ diff --git a/WNT/menu2.exe/about.cpp b/WNT/menu2.exe/about.cpp index 0bcf667..1019a9e 100644 --- a/WNT/menu2.exe/about.cpp +++ b/WNT/menu2.exe/about.cpp @@ -97,17 +97,19 @@ BOOL about::OnInitDialog() m_textver.SetWindowText(AsciiToUnicode(buffer)); m_edit1.SetWindowText( L"Developer\r\n" - " 351 @351Workshop\r\n" - "Supporter and Sponsor\r\n" - " IBM @IBM_Official\r\n" - " Dr.Quest @蓬岸 Dr.Quest\r\n" + " 351 351Workshop@Bilibili\r\n" + "Sponsor\r\n" + " IBM IBM_Official@Bilibili\r\n" + " Dr.Quest 蓬岸@知乎\r\n" + "Image Providing\r\n" + " Alexis lucss21a@Discord\r\n" "Artworks\r\n" - " WinPad @とある科学の手机副屏\r\n" + " WinPad とある科学の手机副屏@Bilibili\r\n" "Guidance and Testing\r\n" - " Inter @-INTER_INIT-\r\n" - " GoldApple @不务正业的金苹果\r\n" - " Zesa @LinuxMEMZ\r\n" - " DZY @DZY20070614\r\n"); + " Inter -INTER_INIT-@Bilibili\r\n" + " GoldApple 不务正业的金苹果@Bilibili\r\n" + " Zesa LinuxMEMZ@Bilibili\r\n" + " DZY DZY20070614@Bilibili\r\n"); //HWND hWndEdit1 = m_edit1.GetSafeHwnd(); //::SendMessage(hWndEdit1, EM_LINESCROLL, 0, 3); diff --git a/WNT/menu2.exe/menu2.aps b/WNT/menu2.exe/menu2.aps index d9b6b4c..724aa27 100644 Binary files a/WNT/menu2.exe/menu2.aps and b/WNT/menu2.exe/menu2.aps differ diff --git a/WNT/menu2.exe/menu2.rc b/WNT/menu2.exe/menu2.rc index 081def3..0aee661 100644 Binary files a/WNT/menu2.exe/menu2.rc and b/WNT/menu2.exe/menu2.rc differ diff --git a/WNT/menu2.exe/menu2Dlg.cpp b/WNT/menu2.exe/menu2Dlg.cpp index b539436..53b825c 100644 --- a/WNT/menu2.exe/menu2Dlg.cpp +++ b/WNT/menu2.exe/menu2Dlg.cpp @@ -64,7 +64,7 @@ void Cmenu2Dlg::MyExpandTree(HTREEITEM hTreeItem) } TCHAR lpPath[255] = { 0 }; -HTREEITEM treeStr[255] = { 0 }; +HTREEITEM *treeStr; BOOL Cmenu2Dlg::OnInitDialog() { CDialogEx::OnInitDialog(); @@ -83,6 +83,7 @@ BOOL Cmenu2Dlg::OnInitDialog() //treeStr[0] = m_tree.InsertItem(L"Windows CE", 1, 0, TVI_ROOT); int iNodeNum = GetPrivateProfileInt(L"0", L"nodeNum", 255, lpPath); + treeStr = new HTREEITEM[iNodeNum](); for (int i = 0; i < iNodeNum; i++) { TCHAR iniCBuffer[255] = { 0 }; @@ -170,13 +171,19 @@ void doCommand(TCHAR *cmd, TCHAR *para) ShellExecute(NULL, L"open", cmd, para, NULL, SW_SHOWNORMAL); } +void doCommandD(TCHAR *cmd, TCHAR *para, TCHAR *dir) +{ + ShellExecute(NULL, L"open", cmd, para, dir, SW_SHOWNORMAL); +} + void Cmenu2Dlg::OnBnClickedOk() { // TODO: 在此添加控件通知处理程序代码 //CDialogEx::OnOK(); HTREEITEM hselected = m_tree.GetSelectedItem(); int currentTreeID = 0; - for (; currentTreeID < 255; currentTreeID++) + int iNodeNum = GetPrivateProfileInt(L"0", L"nodeNum", 255, lpPath); + for (; currentTreeID < iNodeNum; currentTreeID++) { if (hselected == treeStr[currentTreeID]) break; @@ -185,11 +192,13 @@ void Cmenu2Dlg::OnBnClickedOk() TCHAR currentINIHead[255] = { 0 }; TCHAR currentINICmd[255] = { 0 }; TCHAR currentINIPara[255] = { 0 }; + TCHAR currentINIDir[255] = { 0 }; wsprintf(currentINIHead, L"%d", currentTreeID); GetPrivateProfileString(currentINIHead, L"cmd", NULL, currentINICmd, 255, lpPath); GetPrivateProfileString(currentINIHead, L"para", NULL, currentINIPara, 255, lpPath); + GetPrivateProfileString(currentINIHead, L"dir", NULL, currentINIDir, 255, lpPath); if (currentINICmd[0] != NULL) - doCommand(currentINICmd, currentINIPara); + doCommandD(currentINICmd, currentINIPara, currentINIDir); } @@ -204,7 +213,7 @@ void Cmenu2Dlg::OnBnClickedCancel() void Cmenu2Dlg::OnNMClickSyslink1(NMHDR *pNMHDR, LRESULT *pResult) { // TODO: 在此添加控件通知处理程序代码 - doCommand(L"..\\DOCS\\UpdateLog.txt", NULL); + doCommand(L"..\\DOCS\\help.txt", NULL); *pResult = 0; } @@ -212,7 +221,7 @@ void Cmenu2Dlg::OnNMClickSyslink1(NMHDR *pNMHDR, LRESULT *pResult) void Cmenu2Dlg::OnNMClickSyslink2(NMHDR *pNMHDR, LRESULT *pResult) { // TODO: 在此添加控件通知处理程序代码 - doCommand(L"..\\DOCS\\TimeLine.xlsx", NULL); + doCommand(L"..\\DOCS\\vers.bmp", NULL); *pResult = 0; }