Leaked source code of windows server 2003
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.

77 lines
1.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ListItem.inl
  7. //
  8. // Abstract:
  9. // Inline function implementations for the CListItem class.
  10. //
  11. // Author:
  12. // David Potter (davidp) May 10, 1996
  13. //
  14. // Revision History:
  15. //
  16. // Notes:
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. #ifndef _LISTITEM_INL_
  20. #define _LISTITEM_INL_
  21. /////////////////////////////////////////////////////////////////////////////
  22. // Include Files
  23. /////////////////////////////////////////////////////////////////////////////
  24. #ifndef _LISTITEM_H_
  25. #include "ListItem.h" // for CListItem
  26. #endif
  27. #ifndef _CLUSITEM_H_
  28. #include "ClusItem.h" // for CClusterItem
  29. #endif
  30. #ifndef _TREEITEM_H_
  31. #include "TreeItem.h"
  32. #endif
  33. #ifndef _LISTVIEW_H_
  34. #include "ListView.h"
  35. #endif
  36. /////////////////////////////////////////////////////////////////////////////
  37. // Inline Function Definitions
  38. /////////////////////////////////////////////////////////////////////////////
  39. inline CMenu * CListItem::PmenuPopup(void)
  40. {
  41. ASSERT(Pci() != NULL);
  42. return Pci()->PmenuPopup();
  43. } //*** CListItem::PmenuPopup()
  44. inline const CColumnItemList & CListItem::Lpcoli(void) const
  45. {
  46. ASSERT(PtiParent() != NULL);
  47. return PtiParent()->Lpcoli();
  48. } //*** CListItem::Lpcoli()
  49. inline CListCtrl * CListItem::Plc(CClusterListView * pclv) const
  50. {
  51. ASSERT(pclv != NULL);
  52. return &pclv->GetListCtrl();
  53. } //*** CListItem::Plc(pclv)
  54. inline const CString & CListItem::StrName(void) const
  55. {
  56. ASSERT(Pci() != NULL);
  57. return Pci()->StrName();
  58. } //*** CListItem::StrName()
  59. /////////////////////////////////////////////////////////////////////////////
  60. #endif // _LISTITEM_INL_