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.

82 lines
2.4 KiB

  1. /****************************************************************************************
  2. * NAME: EnumCondEdit.h
  3. *
  4. * CLASS: CEnumConditionEditor
  5. *
  6. * OVERVIEW
  7. *
  8. * Internet Authentication Server:
  9. * This dialog box is used to edit an enum-typed condition
  10. *
  11. * Copyright (C) Microsoft Corporation, 1998 - 1999 . All Rights Reserved.
  12. *
  13. * History:
  14. * 1/27/98 Created by Byao (using ATL wizard)
  15. *
  16. *****************************************************************************************/
  17. #ifndef __ENUMCONDEDIT_H_
  18. #define __ENUMCONDEDIT_H_
  19. #include "atltmp.h"
  20. #include "dialog.h"
  21. #include <vector>
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CEnumConditionEditor
  24. class CEnumConditionEditor;
  25. typedef CIASDialog<CEnumConditionEditor, FALSE> ENUMCONDEDITORFALSE;
  26. class CEnumConditionEditor : public CIASDialog<CEnumConditionEditor, FALSE>
  27. {
  28. // FALSE means do not clean up the dialog box automatically, we clean up ourselves
  29. public:
  30. CEnumConditionEditor();
  31. enum { IDD = IDD_DIALOG_ENUM_COND };
  32. BEGIN_MSG_MAP(CEnumConditionEditor)
  33. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  34. NOTIFY_HANDLER(IDC_LIST_ENUMCOND_CHOICE, NM_DBLCLK , OnChoiceDblclk)
  35. NOTIFY_HANDLER(IDC_LIST_ENUMCOND_SELECTION, NM_DBLCLK , OnSelectionDblclk)
  36. COMMAND_ID_HANDLER(IDOK, OnOK)
  37. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  38. COMMAND_ID_HANDLER(IDC_BUTTON_ENUMCOND_ADD, OnAdd)
  39. COMMAND_ID_HANDLER(IDC_BUTTON_ENUMCOND_DELETE, OnDelete)
  40. CHAIN_MSG_MAP(ENUMCONDEDITORFALSE)
  41. END_MSG_MAP()
  42. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  43. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  44. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  45. LRESULT OnAdd(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  46. LRESULT OnDelete(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  47. LRESULT OnChoiceDblclk(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  48. LRESULT OnSelectionDblclk(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  49. public:
  50. ATL::CString m_strAttrName;
  51. CComPtr< IIASAttributeInfo > m_spAttributeInfo;
  52. std::vector< CComBSTR > * m_pSelectedList;
  53. HRESULT GetHelpPath(LPTSTR szHelpPath);
  54. protected:
  55. BOOL PopulateSelections();
  56. LRESULT SwapSelection(int iSource, int iDest);
  57. };
  58. #endif //__EnumCondEdit_H_