void CSimpleServerView::OnInitialUpdate()
{
CView::OnInitialUpdate();
// TODO: 在此添加专用代码和/或调用基类
CRect rect;
GetClientRect(rect);
m_pCListCtrl=new CListCtrl;
m_pCListCtrl->Create(WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT,rect,this,1);
LV_COLUMN column;
column.pszText="ClientID";
column.mask=LVCF_TEXT;
m_pCListCtrl->InsertColumn(0,&column);
m_pCListCtrl->SetColumnWidth(0,100);
column.pszText="ClientIP";
column.mask=LVCF_TEXT;
m_pCListCtrl->InsertColumn(1,&column);
m_pCListCtrl->SetColumnWidth(1,100);
column.pszText="ClientPort";
column.mask=LVCF_TEXT;
m_pCListCtrl->InsertColumn(2,&column);
m_pCListCtrl->SetColumnWidth(2,100);
column.pszText="Online";
column.mask=LVCF_TEXT;
m_pCListCtrl->InsertColumn(3,&column);
m_pCListCtrl->SetColumnWidth(3,80);
}
增加一项
if (m_pCListCtrl)
{
char temp[9];
strncpy(temp,(char *)pClientInfo->ClientID,8);
temp[8]=0x0;
CString str=temp;
m_pCListCtrl->InsertItem(m_pCListCtrl->GetItemCount(),str);
str.Format("0x%x",pClientInfo->ClientIP);
m_pCListCtrl->SetItemText(m_pCListCtrl->GetItemCount()-1,1,str);
str.Format("%d",pClientInfo->ClientPort);
m_pCListCtrl->SetItemText(m_pCListCtrl->GetItemCount()-1,2,str);
if (pClientInfo->Online==TRUE)
{
m_pCListCtrl->SetItemText(m_pCListCtrl->GetItemCount()-1,3,"TRUE");
}
else
{
m_pCListCtrl->SetItemText(m_pCListCtrl->GetItemCount()-1,3,"FALSE");
}
}
http://www.sxycrb.com/zhzx/ylmx/1120732.html
http://www.sxycrb.com/zhzx/jrjj/1120733.html
http://www.sxycrb.com/zhzx/jrjj/1120734.html
http://www.sxycrb.com/zhzx/ylmx/1120735.html
http://www.sxycrb.com/zhzx/jrjj/1120736.html
http://www.sxycrb.com/zhzx/ylmx/1120737.html
http://www.sxycrb.com/zhzx/jrjj/1120738.html
http://www.sxycrb.com/zhzx/jrjj/1120739.html
http://www.sxycrb.com/zhzx/ylmx/1120740.html
http://www.sxycrb.com/zhzx/ylmx/1120741.html
http://www.sxycrb.com/zhzx/jrjj/1120742.html
http://www.sxycrb.com/zhzx/ylmx/1120743.html
http://www.sxycrb.com/zhzx/jrjj/1120744.html
http://www.sxycrb.com/zhzx/jrjj/1120745.html
http://www.sxycrb.com/zhzx/ylmx/1120746.html
http://www.sxycrb.com/zhzx/ylmx/1120747.html
http://www.sxycrb.com/zhzx/jrjj/1120748.html
http://www.sxycrb.com/zhzx/ylmx/1120749.html
http://www.sxycrb.com/zhzx/ylmx/1120750.html
http://www.sxycrb.com/zhzx/jrjj/1120751.html
http://www.sxycrb.com/zhzx/jrjj/1120752.html
http://www.sxycrb.com/zhzx/ylmx/1120753.html
http://www.sxycrb.com/zhzx/jrjj/1120754.html
http://www.sxycrb.com/zhzx/ylmx/1120755.html
http://www.sxycrb.com/zhzx/jrjj/1120756.html
http://www.sxycrb.com/zhzx/ylmx/1120757.html
http://www.sxycrb.com/zhzx/jrjj/1120758.html
http://www.sxycrb.com/zhzx/ylmx/1120759.html
http://www.sxycrb.com/zhzx/jrjj/1120760.html
http://www.sxycrb.com/zhzx/ylmx/1120761.html
http://www.sxycrb.com/zhzx/jrjj/1120762.html
http://www.sxycrb.com/zhzx/ylmx/1120763.html
http://www.sxycrb.com/zhzx/jrjj/1120764.html
http://www.sxycrb.com/zhzx/jrjj/1120765.html
http://www.sxycrb.com/zhzx/jrjj/1120766.html
http://www.sxycrb.com/zhzx/ylmx/1120767.html
http://www.sxycrb.com/zhzx/ylmx/1120768.html
http://www.sxycrb.com/zhzx/jrjj/1120769.html
http://www.sxycrb.com/zhzx/jrjj/1120770.html
http://www.sxycrb.com/zhzx/ylmx/1120771.html
http://www.sxycrb.com/zhzx/ylmx/1120772.html
http://www.sxycrb.com/zhzx/jrjj/1120773.html
http://www.sxycrb.com/zhzx/ylmx/1120774.html
http://www.sxycrb.com/zhzx/jrjj/1120775.html
http://www.sxycrb.com/zhzx/ylmx/1120776.html
http://www.sxycrb.com/zhzx/ylmx/1120777.html
http://www.sxycrb.com/zhzx/jrjj/1120778.html
http://www.sxycrb.com/zhzx/ylmx/1120779.html
http://www.sxycrb.com/zhzx/ylmx/1120780.html
http://www.sxycrb.com/zhzx/ylmx/1120781.html
http://www.sxycrb.com/zhzx/jrjj/1120782.html
http://www.sxycrb.com/zhzx/ylmx/1120783.html
http://www.sxycrb.com/zhzx/jrjj/1120784.html
http://www.sxycrb.com/zhzx/ylmx/1120785.html
http://www.sxycrb.com/zhzx/ylmx/1120786.html
http://www.sxycrb.com/zhzx/ylmx/1120787.html
http://www.sxycrb.com/zhzx/jrjj/1120788.html
http://www.sxycrb.com/zhzx/jrjj/1120789.html
http://www.sxycrb.com/zhzx/ylmx/1120790.html
http://www.sxycrb.com/zhzx/ylmx/1120791.html
http://www.sxycrb.com/zhzx/ylmx/1120792.html
http://www.sxycrb.com/zhzx/ylmx/1120793.html
http://www.sxycrb.com/zhzx/jrjj/1120794.html
http://www.sxycrb.com/zhzx/ylmx/1120795.html
http://www.sxycrb.com/zhzx/ylmx/1120796.html
http://www.sxycrb.com/zhzx/jrjj/1120797.html
http://www.sxycrb.com/zhzx/ylmx/1120798.html
http://www.sxycrb.com/zhzx/jrjj/1120799.html
http://www.sxycrb.com/zhzx/ylmx/1120800.html
http://www.sxycrb.com/zhzx/ylmx/1120801.html
http://www.sxycrb.com/zhzx/jrjj/1120802.html
http://www.sxycrb.com/zhzx/ylmx/1120803.html
http://www.sxycrb.com/zhzx/jrjj/1120804.html
http://www.sxycrb.com/zhzx/ylmx/1120805.html
http://www.sxycrb.com/zhzx/ylmx/1120806.html
http://www.sxycrb.com/zhzx/jrjj/1120807.html
http://www.sxycrb.com/zhzx/ylmx/1120808.html
http://www.sxycrb.com/zhzx/ylmx/1120809.html
http://www.sxycrb.com/zhzx/ylmx/1120810.html
http://www.sxycrb.com/zhzx/jrjj/1120811.html
http://www.sxycrb.com/zhzx/ylmx/1120812.html
http://www.sxycrb.com/zhzx/jrjj/1120813.html
http://www.sxycrb.com/zhzx/jrjj/1120814.html
http://www.sxycrb.com/zhzx/jrjj/1120815.html
http://www.sxycrb.com/zhzx/ylmx/1120816.html
http://www.sxycrb.com/zhzx/jrjj/1120817.html
http://www.sxycrb.com/zhzx/ylmx/1120818.html
http://www.sxycrb.com/zhzx/jrjj/1120819.html
http://www.sxycrb.com/zhzx/jrjj/1120820.html
http://www.sxycrb.com/zhzx/ylmx/1120821.html
http://www.sxycrb.com/zhzx/jrjj/1120822.html
http://www.sxycrb.com/zhzx/jrjj/1120823.html
http://www.sxycrb.com/zhzx/jrjj/1120824.html
http://www.sxycrb.com/zhzx/jrjj/1120825.html
http://www.sxycrb.com/zhzx/jrjj/1120826.html
http://www.sxycrb.com/zhzx/jrjj/1120827.html
http://www.sxycrb.com/zhzx/jrjj/1120828.html
http://www.sxycrb.com/zhzx/jrjj/1120829.html
http://www.sxycrb.com/zhzx/jrjj/1120830.html
http://www.sxycrb.com/zhzx/jrjj/1120831.html
http://www.sxycrb.com/zhzx/jrjj/1120832.html
http://www.sxycrb.com/zhzx/jrjj/1120833.html
http://www.sxycrb.com/zhzx/jrjj/1120834.html
http://www.sxycrb.com/zhzx/jrjj/1120835.html
http://www.sxycrb.com/zhzx/jrjj/1120836.html
http://www.sxycrb.com/zhzx/jrjj/1120837.html
http://www.sxycrb.com/zhzx/jrjj/1120838.html
http://www.sxycrb.com/zhzx/jrjj/1120839.html
http://www.sxycrb.com/zhzx/jrjj/1120840.html
http://www.sxycrb.com/zhzx/jrjj/1120841.html
http://www.sxycrb.com/zhzx/jrjj/1120842.html
http://www.sxycrb.com/zhzx/jrjj/1120843.html
http://www.sxycrb.com/zhzx/jrjj/1120844.html
http://www.sxycrb.com/zhzx/jrjj/1120845.html
http://www.sxycrb.com/zhzx/jrjj/1120846.html
http://www.sxycrb.com/zhzx/jrjj/1120847.html
http://www.sxycrb.com/zhzx/jrjj/1120848.html
http://www.sxycrb.com/zhzx/jrjj/1120849.html
http://www.sxycrb.com/zhzx/jrjj/1120850.html
http://www.sxycrb.com/zhzx/jrjj/1120851.html
http://www.sxycrb.com/zhzx/jrjj/1120852.html
http://www.sxycrb.com/zhzx/jrjj/1120853.html
http://www.sxycrb.com/zhzx/jrjj/1120854.html
http://www.sxycrb.com/zhzx/jrjj/1120855.html
http://www.sxycrb.com/zhzx/jrjj/1120856.html
http://www.sxycrb.com/zhzx/jrjj/1120857.html
http://www.sxycrb.com/zhzx/jrjj/1120858.html
http://www.sxycrb.com/zhzx/jrjj/1120859.html
http://www.sxycrb.com/zhzx/jrjj/1120860.html
http://www.sxycrb.com/zhzx/jrjj/1120861.html
http://www.sxycrb.com/zhzx/jrjj/1120862.html
http://www.sxycrb.com/zhzx/jrjj/1120863.html
http://www.sxycrb.com/zhzx/jrjj/1120864.html
http://www.sxycrb.com/zhzx/jrjj/1120865.html
http://www.sxycrb.com/zhzx/jrjj/1120866.html
http://www.sxycrb.com/zhzx/jrjj/1120867.html
http://www.sxycrb.com/zhzx/jrjj/1120868.html
http://www.sxycrb.com/zhzx/jrjj/1120869.html
http://www.sxycrb.com/zhzx/jrjj/1120870.html
http://www.sxycrb.com/zhzx/jrjj/1120871.html
http://www.sxycrb.com/zhzx/jrjj/1120872.html
http://www.sxycrb.com/zhzx/jrjj/1120873.html
http://www.sxycrb.com/zhzx/jrjj/1120874.html
http://www.sxycrb.com/zhzx/jrjj/1120875.html
http://www.sxycrb.com/zhzx/jrjj/1120876.html
http://www.sxycrb.com/zhzx/jrjj/1120877.html
http://www.sxycrb.com/zhzx/jrjj/1120878.html
http://www.sxycrb.com/zhzx/jrjj/1120879.html
http://www.sxycrb.com/zhzx/jrjj/1120880.html
http://www.sxycrb.com/zhzx/jrjj/1120881.html
http://www.sxycrb.com/zhzx/jrjj/1120882.html
http://www.sxycrb.com/zhzx/jrjj/1120883.html
http://www.sxycrb.com/zhzx/jrjj/1120884.html
http://www.sxycrb.com/zhzx/jrjj/1120885.html
http://www.sxycrb.com/zhzx/jrjj/1120886.html
http://www.sxycrb.com/zhzx/jrjj/1120887.html
http://www.sxycrb.com/zhzx/jrjj/1120888.html
http://www.sxycrb.com/zhzx/jrjj/1120889.html
http://www.sxycrb.com/zhzx/jrjj/1120890.html
http://www.sxycrb.com/zhzx/jrjj/1120891.html
http://www.sxycrb.com/zhzx/jrjj/1120892.html
http://www.sxycrb.com/zhzx/jrjj/1120893.html
http://www.sxycrb.com/zhzx/jrjj/1120894.html
http://www.sxycrb.com/zhzx/jrjj/1120895.html
http://www.sxycrb.com/zhzx/jrjj/1120896.html
http://www.sxycrb.com/zhzx/jrjj/1120897.html
http://www.sxycrb.com/zhzx/jrjj/1120898.html
http://www.sxycrb.com/zhzx/jrjj/1120899.html
http://www.sxycrb.com/zhzx/jrjj/1120900.html
http://www.sxycrb.com/zhzx/jrjj/1120901.html
http://www.sxycrb.com/zhzx/jrjj/1120902.html
http://www.sxycrb.com/zhzx/jrjj/1120903.html
http://www.sxycrb.com/zhzx/jrjj/1120904.html
http://www.sxycrb.com/zhzx/jrjj/1120905.html
http://www.sxycrb.com/zhzx/jrjj/1120906.html
http://www.sxycrb.com/zhzx/jrjj/1120907.html
http://www.sxycrb.com/zhzx/jrjj/1120908.html
http://www.sxycrb.com/zhzx/jrjj/1120909.html
http://www.sxycrb.com/zhzx/jrjj/1120910.html
http://www.sxycrb.com/zhzx/jrjj/1120911.html
http://www.sxycrb.com/zhzx/jrjj/1120912.html
http://www.sxycrb.com/zhzx/jrjj/1120913.html
http://www.sxycrb.com/zhzx/jrjj/1120914.html
http://www.sxycrb.com/zhzx/jrjj/1120915.html
http://www.sxycrb.com/zhzx/jrjj/1120916.html
http://www.sxycrb.com/zhzx/jrjj/1120917.html
http://www.sxycrb.com/zhzx/jrjj/1120918.html
http://www.sxycrb.com/zhzx/jrjj/1120919.html
http://www.sxycrb.com/zhzx/jrjj/1120920.html
http://www.sxycrb.com/zhzx/jrjj/1120921.html
http://www.sxycrb.com/zhzx/jrjj/1120922.html
http://www.sxycrb.com/zhzx/jrjj/1120923.html
http://www.sxycrb.com/zhzx/jrjj/1120924.html
http://www.sxycrb.com/zhzx/jrjj/1120925.html
http://www.sxycrb.com/zhzx/jrjj/1120926.html
http://www.sxycrb.com/zhzx/jrjj/1120927.html
http://www.sxycrb.com/zhzx/jrjj/1120928.html
http://www.sxycrb.com/zhzx/jrjj/1120929.html
http://www.sxycrb.com/zhzx/jrjj/1120930.html
http://www.sxycrb.com/zhzx/jrjj/1120931.html
http://www.sxycrb.com/zhzx/jrjj/1120932.html
http://www.sxycrb.com/zhzx/jrjj/1120933.html
http://www.sxycrb.com/zhzx/jrjj/1120934.html
http://www.sxycrb.com/zhzx/jrjj/1120935.html
http://www.sxycrb.com/zhzx/jrjj/1120936.html
http://www.sxycrb.com/zhzx/jrjj/1120937.html
http://www.sxycrb.com/zhzx/jrjj/1120938.html
http://www.sxycrb.com/zhzx/jrjj/1120939.html
http://www.sxycrb.com/zhzx/jrjj/1120940.html
http://www.sxycrb.com/zhzx/jrjj/1120941.html
http://www.sxycrb.com/zhzx/jrjj/1120942.html
http://www.sxycrb.com/zhzx/jrjj/1120943.html
http://www.sxycrb.com/zhzx/jrjj/1120944.html
http://www.sxycrb.com/zhzx/jrjj/1120945.html
http://www.sxycrb.com/zhzx/jrjj/1120946.html
http://www.sxycrb.com/zhzx/jrjj/1120947.html
http://www.sxycrb.com/zhzx/jrjj/1120948.html
http://www.sxycrb.com/zhzx/jrjj/1120949.html
http://www.sxycrb.com/zhzx/jrjj/1120950.html
http://www.sxycrb.com/zhzx/jrjj/1120951.html
http://www.sxycrb.com/zhzx/jrjj/1120952.html
http://www.sxycrb.com/zhzx/jrjj/1120953.html
http://www.sxycrb.com/zhzx/jrjj/1120954.html
http://www.sxycrb.com/zhzx/jrjj/1120955.html
http://www.sxycrb.com/zhzx/jrjj/1120956.html
http://www.sxycrb.com/zhzx/jrjj/1120957.html
http://www.sxycrb.com/zhzx/jrjj/1120958.html
http://www.sxycrb.com/zhzx/jrjj/1120959.html
http://www.sxycrb.com/zhzx/jrjj/1120960.html
http://www.sxycrb.com/zhzx/jrjj/1120961.html
http://www.sxycrb.com/zhzx/jrjj/1120962.html
http://www.sxycrb.com/zhzx/jrjj/1120963.html
http://www.sxycrb.com/zhzx/jrjj/1120964.html
http://www.sxycrb.com/zhzx/jrjj/1120965.html
http://www.sxycrb.com/zhzx/jrjj/1120966.html
http://www.sxycrb.com/zhzx/jrjj/1120967.html
http://www.sxycrb.com/zhzx/jrjj/1120968.html
http://www.sxycrb.com/zhzx/jrjj/1120969.html
http://www.sxycrb.com/zhzx/jrjj/1120970.html
http://www.sxycrb.com/zhzx/jrjj/1120971.html
http://www.sxycrb.com/zhzx/jrjj/1120972.html
http://www.sxycrb.com/zhzx/jrjj/1120973.html
http://www.sxycrb.com/zhzx/jrjj/1120974.html
http://www.sxycrb.com/zhzx/jrjj/1120975.html
http://www.sxycrb.com/zhzx/jrjj/1120976.html
http://www.sxycrb.com/zhzx/jrjj/1120977.html
http://www.sxycrb.com/zhzx/jrjj/1120978.html
http://www.sxycrb.com/zhzx/jrjj/1120979.html
http://www.sxycrb.com/zhzx/jrjj/1120980.html
http://www.sxycrb.com/zhzx/jrjj/1120981.html
http://www.sxycrb.com/zhzx/jrjj/1120982.html
http://www.sxycrb.com/zhzx/jrjj/1120983.html
http://www.sxycrb.com/zhzx/jrjj/1120984.html
http://www.sxycrb.com/zhzx/jrjj/1120985.html
http://www.sxycrb.com/zhzx/jrjj/1120986.html
http://www.sxycrb.com/zhzx/jrjj/1120987.html
http://www.sxycrb.com/zhzx/jrjj/1120988.html
http://www.sxycrb.com/zhzx/jrjj/1120989.html
http://www.sxycrb.com/zhzx/jrjj/1120990.html
http://www.sxycrb.com/zhzx/jrjj/1120991.html
http://www.sxycrb.com/zhzx/jrjj/1120992.html
http://www.sxycrb.com/zhzx/jrjj/1120993.html
http://www.sxycrb.com/zhzx/jrjj/1120994.html
http://www.sxycrb.com/zhzx/jrjj/1120995.html
http://www.sxycrb.com/zhzx/jrjj/1120996.html
http://www.sxycrb.com/zhzx/jrjj/1120997.html
http://www.sxycrb.com/zhzx/jrjj/1120998.html
http://www.sxycrb.com/zhzx/jrjj/1120999.html
http://www.sxycrb.com/zhzx/jrjj/1121000.html
http://www.sxycrb.com/zhzx/jrjj/1121001.html
http://www.sxycrb.com/zhzx/jrjj/1121002.html
http://www.sxycrb.com/zhzx/jrjj/1121003.html
http://www.sxycrb.com/zhzx/jrjj/1121004.html
http://www.sxycrb.com/zhzx/jrjj/1121005.html
http://www.sxycrb.com/zhzx/jrjj/1121006.html
http://www.sxycrb.com/zhzx/jrjj/1121007.html
http://www.sxycrb.com/zhzx/jrjj/1121008.html
http://www.sxycrb.com/zhzx/jrjj/1121009.html
http://www.sxycrb.com/zhzx/jrjj/1121010.html
http://www.sxycrb.com/zhzx/jrjj/1121011.html
http://www.sxycrb.com/zhzx/jrjj/1121012.html
http://www.sxycrb.com/zhzx/jrjj/1121013.html
http://www.sxycrb.com/zhzx/jrjj/1121014.html
http://www.sxycrb.com/zhzx/jrjj/1121015.html
http://www.sxycrb.com/zhzx/jrjj/1121016.html
http://www.sxycrb.com/zhzx/jrjj/1121017.html
http://www.sxycrb.com/zhzx/jrjj/1121018.html
http://www.sxycrb.com/zhzx/jrjj/1121019.html
http://www.sxycrb.com/zhzx/jrjj/1121020.html
http://www.sxycrb.com/zhzx/jrjj/1121021.html
http://www.sxycrb.com/zhzx/jrjj/1121022.html
http://www.sxycrb.com/zhzx/jrjj/1121023.html
http://www.sxycrb.com/zhzx/jrjj/1121024.html
http://www.sxycrb.com/zhzx/jrjj/1121025.html
http://www.sxycrb.com/zhzx/jrjj/1121026.html
http://www.sxycrb.com/zhzx/jrjj/1121027.html
http://www.sxycrb.com/zhzx/jrjj/1121028.html
http://www.sxycrb.com/zhzx/jrjj/1121029.html
http://www.sxycrb.com/zhzx/jrjj/1121030.html