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.

48 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: enumcondition.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // EnumCondition.h: interface for the CEnumCondition class.
  11. //
  12. //////////////////////////////////////////////////////////////////////
  13. #if !defined(AFX_ENUMCONDITION_H__9F917679_A693_11D1_BBEB_00C04FC31851__INCLUDED_)
  14. #define AFX_ENUMCONDITION_H__9F917679_A693_11D1_BBEB_00C04FC31851__INCLUDED_
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. #include "atltmp.h"
  19. #include <vector>
  20. #include "condition.h"
  21. class CEnumCondition : public CCondition
  22. {
  23. public:
  24. CEnumCondition( IIASAttributeInfo* pCondAttr, ATL::CString &strConditionText );
  25. CEnumCondition( IIASAttributeInfo* pCondAttr );
  26. virtual ~CEnumCondition();
  27. HRESULT Edit();
  28. virtual ATL::CString GetDisplayText();
  29. protected:
  30. HRESULT ParseConditionText(); // parse the initial condition text
  31. BOOL m_fParsed; // whether this condition text has been parsed
  32. // During initialization we need to parse the condition text
  33. // to get the preselected values
  34. std::vector< CComBSTR > m_arrSelectedList; // preselected values
  35. };
  36. #endif // !defined(AFX_ENUMCONDITION_H__9F917679_A693_11D1_BBEB_00C04FC31851__INCLUDED_)