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.

40 lines
1.0 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: AUCatItem.h
  6. //
  7. // Creator: PeterWi
  8. //
  9. // Purpose: AU Catalog Item
  10. //
  11. //=======================================================================
  12. #pragma once
  13. #include "AUBaseCatalog.h"
  14. //const DWORD AUCATITEM_UNSELECTED = 0;
  15. //const DWORD AUCATITEM_SELECTED = 1;
  16. //const DWORD AUCATITEM_HIDDEN = 2;
  17. struct CatalogItem
  18. {
  19. void init(PUID puid, DWORD index, DWORD dwStatus = AUCATITEM_SELECTED)
  20. {
  21. m_puid = puid;
  22. m_dwStatus = dwStatus;
  23. m_index = index;
  24. }
  25. void SetStatus(DWORD dwStatus) { m_dwStatus = dwStatus; }
  26. void SetStatusHidden(void) { m_dwStatus = AUCATITEM_HIDDEN; }
  27. DWORD GetStatus(void) { return m_dwStatus; }
  28. BOOL Selected(void) { return (AUCATITEM_SELECTED == m_dwStatus); }
  29. BOOL Unselected(void) { return (AUCATITEM_UNSELECTED == m_dwStatus); }
  30. BOOL Hidden(void) { return (AUCATITEM_HIDDEN == m_dwStatus); }
  31. PUID m_puid;
  32. BOOL m_dwStatus;
  33. DWORD m_index;
  34. };