From 00933aeac53af9a27c8862cec923cb273951fc5f Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:20:33 +0000 Subject: [PATCH] --- StockServer/UserListView.h | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 StockServer/UserListView.h diff --git a/StockServer/UserListView.h b/StockServer/UserListView.h new file mode 100644 index 0000000..f4d2c61 --- /dev/null +++ b/StockServer/UserListView.h @@ -0,0 +1,64 @@ +// UserListView.h : interface of the CUserListView class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_USERLISTVIEW_H__600B12DE_B714_424A_A915_892F6ECC32CF__INCLUDED_) +#define AFX_USERLISTVIEW_H__600B12DE_B714_424A_A915_892F6ECC32CF__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +class CUserListView : public CListView +{ +protected: // create from serialization only + CUserListView(); + DECLARE_DYNCREATE(CUserListView) + +// Attributes +public: + +// Operations +public: + void UpdateClientsList(CPtrList* pClientstList); + void UpdateCols(); + void ClearView(); + +private: + void OnPaint(); // overridden to draw this view + BOOL ListIsEmpty() { return (GetListCtrl().GetItemCount() > 0)?FALSE:TRUE; } + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CUserListView) + protected: + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CUserListView(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: + +// Generated message map functions +protected: + //{{AFX_MSG(CUserListView) + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + afx_msg void OnDestroy(); + // NOTE - the ClassWizard will add and remove member functions here. + // DO NOT EDIT what you see in these blocks of generated code ! + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_USERLISTVIEW_H__600B12DE_B714_424A_A915_892F6ECC32CF__INCLUDED_)