This commit is contained in:
64
StockServer/UserListView.h
Normal file
64
StockServer/UserListView.h
Normal file
@@ -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_)
|
||||||
Reference in New Issue
Block a user