diff --git a/CcRemote/.vs/CcRemote/v15/.suo b/CcRemote/.vs/CcRemote/v15/.suo index e54af9b..a0096e9 100644 Binary files a/CcRemote/.vs/CcRemote/v15/.suo and b/CcRemote/.vs/CcRemote/v15/.suo differ diff --git a/CcRemote/CcRemote/CcRemoteDlg.cpp b/CcRemote/CcRemote/CcRemoteDlg.cpp index d41e3a0..e5e4456 100644 --- a/CcRemote/CcRemote/CcRemoteDlg.cpp +++ b/CcRemote/CcRemote/CcRemoteDlg.cpp @@ -240,7 +240,8 @@ BOOL CCcRemoteDlg::OnInitDialog() //----------------------------------------| ListenPort(); // 监听端口 Test(); - isTrue = 0; + isOnlineIcoTrue = 0; + isMessageIcoTrue = 0; return TRUE; // 除非将焦点设置到控件,否则返回 TRUE } @@ -1221,14 +1222,25 @@ HBRUSH CCcRemoteDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor); - if (m_CList_Online.m_hWnd != NULL&& isTrue == 0) + if (m_CList_Online.m_hWnd != NULL&& isOnlineIcoTrue == 0) { TCHAR szBuffer[_MAX_PATH]; VERIFY(::GetModuleFileName(AfxGetInstanceHandle(), szBuffer, _MAX_PATH)); CString sPath = (CString)szBuffer; sPath = sPath.Left(sPath.ReverseFind('\\') + 1); sPath += "res\\list_online_pic.bmp"; - isTrue = m_CList_Online.SetBkImage(sPath.GetBuffer(sPath.GetLength()), TRUE); // 定义:CListCtrl m_controllist1; + isOnlineIcoTrue = m_CList_Online.SetBkImage(sPath.GetBuffer(sPath.GetLength()), TRUE); // 定义:CListCtrl m_controllist1; + sPath.ReleaseBuffer(); + // TODO: 如果默认的不是所需画笔,则返回另一个画笔 + } + if (m_CList_Message.m_hWnd != NULL && isMessageIcoTrue == 0) + { + TCHAR szBuffer[_MAX_PATH]; + VERIFY(::GetModuleFileName(AfxGetInstanceHandle(), szBuffer, _MAX_PATH)); + CString sPath = (CString)szBuffer; + sPath = sPath.Left(sPath.ReverseFind('\\') + 1); + sPath += "res\\list_message_pic.bmp"; + isMessageIcoTrue = m_CList_Message.SetBkImage(sPath.GetBuffer(sPath.GetLength()), TRUE); // 定义:CListCtrl m_controllist1; sPath.ReleaseBuffer(); // TODO: 如果默认的不是所需画笔,则返回另一个画笔 } diff --git a/CcRemote/CcRemote/CcRemoteDlg.h b/CcRemote/CcRemote/CcRemoteDlg.h index d90aafe..882b3ef 100644 --- a/CcRemote/CcRemote/CcRemoteDlg.h +++ b/CcRemote/CcRemote/CcRemoteDlg.h @@ -65,7 +65,8 @@ private: CBitmap m_BitmapPicLogoA; CStatic m_PicLogoA; // 左上角logo - bool isTrue; // list背景是否已经加载 + bool isOnlineIcoTrue; // list背景是否已经加载 + bool isMessageIcoTrue; #define COLUMN_ONLINE_COUNT 7 // 在线列表的个数 #define COLUMN_MESSAGE_COUNT 3 // 消息列表的个数 diff --git a/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log b/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log index df78ba9..1c78b9f 100644 --- a/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log +++ b/CcRemote/CcRemote/Debug/CcRemote.Build.CppClean.log @@ -1,38 +1,4 @@ -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.pch -f:\myapp\ccremote\ccremote\ccremote\debug\vc141.pdb -f:\myapp\ccremote\ccremote\ccremote\debug\vc141.idb -f:\myapp\ccremote\ccremote\ccremote\debug\pch.obj -f:\myapp\ccremote\ccremote\ccremote\debug\audio.obj -f:\myapp\ccremote\ccremote\ccremote\debug\truecolortoolbar.obj -f:\myapp\ccremote\ccremote\ccremote\debug\seu_qqwry.obj -f:\myapp\ccremote\ccremote\ccremote\debug\regdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\inputdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\inifile.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cpuusage.obj -f:\myapp\ccremote\ccremote\ccremote\debug\csystemdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cshelldlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\csettingdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cscreenspydlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\filetransfermodedlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cserverdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\ckeyboarddlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\cfilemanagerdlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\ccremotedlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.obj -f:\myapp\ccremote\ccremote\ccremote\debug\caudiodlg.obj -f:\myapp\ccremote\ccremote\ccremote\debug\iocpserver.obj -f:\myapp\ccremote\ccremote\ccremote\debug\buffer.obj -f:\myapp\ccremote\bin\ccremote.ilk -f:\myapp\ccremote\bin\ccremote.exe -f:\myapp\ccremote\bin\ccremote.pdb +f:\myapp\ccremote\ccremote\ccremote\debug\ccremotedlg.obj.enc +f:\myapp\ccremote\ccremote\ccremote\debug\ckeyboarddlg.obj.enc f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.res f:\myapp\ccremote\ccremote\ccremote\..\..\bin\ccremote.exe -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\cl.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\cl.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\cl.write.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\link.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\link.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\link.write.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\rc.command.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\rc.read.1.tlog -f:\myapp\ccremote\ccremote\ccremote\debug\ccremote.tlog\rc.write.1.tlog diff --git a/CcRemote/CcRemote/Debug/CcRemote.log b/CcRemote/CcRemote/Debug/CcRemote.log index 9ad1766..6f750cd 100644 --- a/CcRemote/CcRemote/Debug/CcRemote.log +++ b/CcRemote/CcRemote/Debug/CcRemote.log @@ -1,5 +1,12 @@ C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 目录未以斜杠结尾。 此生成实例将添加斜杠,因为必须有这个斜杠才能正确计算 Output 目录。 - CKeyBoardDlg.cpp -f:\myapp\ccremote\ccremote\ccremote\ckeyboarddlg.cpp(27): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + CcRemoteDlg.cpp +f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(170): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 参见“gethostbyname”的声明 +f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(175): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 +f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(335): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(355): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据 +f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(894): warning C4018: “<=”: 有符号/无符号不匹配 +f:\myapp\ccremote\ccremote\ccremote\ccremotedlg.cpp(985): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明 CcRemote.vcxproj -> F:\myapp\CcRemote\CcRemote\CcRemote\..\..\bin\CcRemote.exe diff --git a/CcRemote/CcRemote/Debug/ccremotedlg.obj.enc b/CcRemote/CcRemote/Debug/ccremotedlg.obj.enc deleted file mode 100644 index 0164b74..0000000 Binary files a/CcRemote/CcRemote/Debug/ccremotedlg.obj.enc and /dev/null differ diff --git a/CcRemote/CcRemote/Debug/ckeyboarddlg.obj.enc b/CcRemote/CcRemote/Debug/ckeyboarddlg.obj.enc deleted file mode 100644 index f22df7c..0000000 Binary files a/CcRemote/CcRemote/Debug/ckeyboarddlg.obj.enc and /dev/null differ diff --git a/CcRemote/CcRemote/res/list_message_pic.bmp b/CcRemote/CcRemote/res/list_message_pic.bmp new file mode 100644 index 0000000..31e7bae Binary files /dev/null and b/CcRemote/CcRemote/res/list_message_pic.bmp differ diff --git a/bin/CcRemote.exe b/bin/CcRemote.exe index 1f04dc6..32cb129 100644 Binary files a/bin/CcRemote.exe and b/bin/CcRemote.exe differ diff --git a/bin/res/list_message_pic.bmp b/bin/res/list_message_pic.bmp new file mode 100644 index 0000000..91f1f46 Binary files /dev/null and b/bin/res/list_message_pic.bmp differ