From d07f9e02de2a03abd887dd860e301de6b5b1f00a Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:25:43 +0000 Subject: [PATCH] --- CheckServer/CheckServerView.h | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 CheckServer/CheckServerView.h diff --git a/CheckServer/CheckServerView.h b/CheckServer/CheckServerView.h new file mode 100644 index 0000000..83efeae --- /dev/null +++ b/CheckServer/CheckServerView.h @@ -0,0 +1,64 @@ +// 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_)