www.pudn.com > QQ2004_Source_0.01.rar > QQServerView.h


// QQServerView.h : interface of the CQQServerView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_QQSERVERVIEW_H__28C0FCEC_8CD4_11D6_9C0E_0080C8F72DA3__INCLUDED_) 
#define AFX_QQSERVERVIEW_H__28C0FCEC_8CD4_11D6_9C0E_0080C8F72DA3__INCLUDED_ 
 
#include "QQSocket.h"	// Added by ClassView 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CQQServerView : public CListView 
{ 
protected: // create from serialization only 
	CQQServerView(); 
	DECLARE_DYNCREATE(CQQServerView) 
 
// Attributes 
public: 
	CQQServerDoc* GetDocument(); 
 
// Operations 
public: 
	void showMessage(LPCTSTR msg){ 
		CString csTime; 
		CTime time; 
		time = CTime::GetCurrentTime(); 
		csTime.Format("%02d:%02d:%02d", time.GetHour(), time.GetMinute(), time.GetSecond()); 
		 
		CListCtrl &theCtrl = GetListCtrl(); 
		int index = theCtrl.InsertItem(theCtrl.GetItemCount(), csTime); 
		theCtrl.SetItemText(index, 1, msg); 
	} 
		 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CQQServerView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CQQServerView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CQQServerView) 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in QQServerView.cpp 
inline CQQServerDoc* CQQServerView::GetDocument() 
   { return (CQQServerDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_QQSERVERVIEW_H__28C0FCEC_8CD4_11D6_9C0E_0080C8F72DA3__INCLUDED_)