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.

71 lines
2.1 KiB

  1. /****************************************************************************************
  2. * NAME: SelCondAttrDlg.h
  3. *
  4. * CLASS: CSelCondAttrDlg
  5. *
  6. * OVERVIEW
  7. *
  8. * Internet Authentication Server: NAP Rule Editing Dialog
  9. * This dialog box is used to display all condition types that users
  10. * can choose from when adding a rule
  11. *
  12. * Copyright (C) Microsoft Corporation, 1998 - 1999 . All Rights Reserved.
  13. *
  14. * History:
  15. * 1/28/98 Created by Byao (using ATL wizard)
  16. *
  17. *****************************************************************************************/
  18. #ifndef __RULESELATTRDIALOG_H_
  19. #define __RULESELATTRDIALOG_H_
  20. #include "dialog.h"
  21. #include "IASAttrList.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSelCondAttrDlg
  24. class CSelCondAttrDlg;
  25. typedef CIASDialog<CSelCondAttrDlg, FALSE> SELECT_CONDITION_ATTRIBUTE_FALSE;
  26. class CSelCondAttrDlg : public CIASDialog<CSelCondAttrDlg, FALSE>
  27. {
  28. public:
  29. CSelCondAttrDlg(CIASAttrList *pAttrList, LONG attrFilter = ALLOWEDINCONDITION);
  30. ~CSelCondAttrDlg();
  31. enum { IDD = IDD_COND_SELECT_ATTRIBUTE };
  32. BEGIN_MSG_MAP(CSelCondAttrDlg)
  33. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  34. COMMAND_ID_HANDLER(IDC_BUTTON_ADD_CONDITION, OnOK)
  35. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  36. NOTIFY_CODE_HANDLER(LVN_ITEMCHANGED, OnListViewItemChanged)
  37. NOTIFY_CODE_HANDLER(NM_DBLCLK, OnListViewDbclk)
  38. CHAIN_MSG_MAP(SELECT_CONDITION_ATTRIBUTE_FALSE)
  39. END_MSG_MAP()
  40. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  41. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  42. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  43. LRESULT OnListViewItemChanged(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  44. LRESULT OnListViewDbclk(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  45. public:
  46. //
  47. // the following public members will be accessed from outside
  48. // this dialog box
  49. //
  50. int m_nSelectedCondAttr;
  51. protected:
  52. BOOL PopulateCondAttrs();
  53. CIASAttrList *m_pAttrList;
  54. LONG m_filter;
  55. private:
  56. HWND m_hWndAttrList;
  57. };
  58. #endif //__RULESELECTATTRIBUTE_H_