📄 stdafx.cpp
字号:
// stdafx.cpp : source file that includes just the standard includes
// PeerYouC.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
#include "mainfrm.h"
#include "peermessagelistview.h"
void Message(char *cmd, char *result)
{
CMainFrame* pMainWnd=(CMainFrame*)AfxGetApp()->GetMainWnd();
CListCtrl& mess=pMainWnd->m_pListMessage->GetListCtrl();
int messcount=mess.GetItemCount();
if(messcount>200)
mess.DeleteAllItems();
else
{
CString a;
int insertindex;
insertindex=mess.InsertItem(0,result);
mess.SetItem(insertindex,1,LVIF_TEXT,cmd,0,0,0,NULL);
mess.SetItem(insertindex,2,LVIF_TEXT,ADDRESS,0,0,0,NULL);
CTime t = CTime::GetCurrentTime();
a=t.Format("%Y-%m-%d %H:%M:%S");
mess.SetItem(insertindex,3,LVIF_TEXT,a,0,0,0,NULL);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -