60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
/*++
|
|
|
|
Copyright (c) 1996 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
UserList.h : header file
|
|
|
|
File History:
|
|
|
|
JonY Apr-96 created
|
|
|
|
--*/
|
|
|
|
#include "transbmp.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CUserList window
|
|
|
|
class CUserList : public CListBox
|
|
{
|
|
// Construction
|
|
public:
|
|
CUserList();
|
|
|
|
// Attributes
|
|
public:
|
|
private:
|
|
CTransBmp* m_pBitmap[7];
|
|
unsigned short m_sHScrollWidth;
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CUserList)
|
|
public:
|
|
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
|
|
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
|
|
virtual int VKeyToItem(UINT nKey, UINT nIndex);
|
|
virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CUserList();
|
|
int AddString(short nType, LPCTSTR lpItem);
|
|
int AddString(LPCTSTR lpItem, DWORD dwBitmap);
|
|
int GetSelType(short sSel);
|
|
CString GetGroupName(short sSel);
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CUserList)
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|