Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. UserList.h : header file
  5. File History:
  6. JonY Apr-96 created
  7. --*/
  8. #include "transbmp.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CUserList window
  11. class CUserList : public CListBox
  12. {
  13. // Construction
  14. public:
  15. CUserList();
  16. // Attributes
  17. public:
  18. private:
  19. CTransBmp* m_pBitmap[7];
  20. unsigned short m_sHScrollWidth;
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CUserList)
  26. public:
  27. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  28. virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
  29. virtual int VKeyToItem(UINT nKey, UINT nIndex);
  30. virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct);
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CUserList();
  35. int AddString(short nType, LPCTSTR lpItem);
  36. int AddString(LPCTSTR lpItem, DWORD dwBitmap);
  37. int GetSelType(short sSel);
  38. CString GetGroupName(short sSel);
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CUserList)
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. };
  45. /////////////////////////////////////////////////////////////////////////////