65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
// CheckServerView.h : interface of the CCheckServerView class
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_CHECKSERVERVIEW_H__5934838A_4489_4405_A826_5BD44F51E0FA__INCLUDED_)
|
|
#define AFX_CHECKSERVERVIEW_H__5934838A_4489_4405_A826_5BD44F51E0FA__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class CCheckServerView : public CListView
|
|
{
|
|
protected: // create from serialization only
|
|
CCheckServerView();
|
|
DECLARE_DYNCREATE(CCheckServerView)
|
|
|
|
// Operations
|
|
public:
|
|
void UpdateCols();
|
|
void ClearView();
|
|
BOOL ListIsEmpty() { return (GetListCtrl().GetItemCount() > 0)?FALSE:TRUE; }
|
|
void AddMessage(CString szTime, CString szName, CString szMessage);
|
|
|
|
private:
|
|
void OnPaint(); // overridden to draw this view
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CMessagesView)
|
|
public:
|
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CCheckServerView();
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CCheckServerView)
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
afx_msg void OnDestroy();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
/*
|
|
#ifndef _DEBUG // debug version in CheckServerView.cpp
|
|
inline CCheckServerDoc* CCheckServerView::GetDocument()
|
|
{ return (CCheckServerDoc*)m_pDocument; }
|
|
#endif
|
|
*/
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_CHECKSERVERVIEW_H__5934838A_4489_4405_A826_5BD44F51E0FA__INCLUDED_)
|