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.

61 lines
1.2 KiB

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