diff --git a/StockServer/MessagesView.h b/StockServer/MessagesView.h new file mode 100644 index 0000000..2d1473e --- /dev/null +++ b/StockServer/MessagesView.h @@ -0,0 +1,63 @@ + // MessagesView.h : interface of the CMessagesView class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_MessagesView_H__EC4F244B_670F_4711_AC0C_C90515A04FD5__INCLUDED_) +#define AFX_MessagesView_H__EC4F244B_670F_4711_AC0C_C90515A04FD5__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + + +class CMessagesView : public CListView +{ +protected: // create from serialization only + CMessagesView(); + DECLARE_DYNCREATE(CMessagesView) + +// Attributes +public: + +// 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 ~CMessagesView(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: + +// Generated message map functions +protected: + //{{AFX_MSG(CMessagesView) + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + afx_msg void OnDestroy(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_MessagesView_H__EC4F244B_670F_4711_AC0C_C90515A04FD5__INCLUDED_)