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.

64 lines
1.7 KiB

  1. /****************************************************************************************
  2. * NAME: MatchCondEdit.h
  3. *
  4. * CLASS: CMatchCondEditor
  5. *
  6. * OVERVIEW
  7. *
  8. * Internet Authentication Server: NAP Condition Editing Dialog No.2
  9. * This dialog box is used to add conditions that only has a single value
  10. *
  11. * Copyright (C) Microsoft Corporation, 1998 - 1999 . All Rights Reserved.
  12. *
  13. * History:
  14. * 1/28/98 Created by Byao (using ATL wizard)
  15. *
  16. *****************************************************************************************/
  17. #ifndef __MatchCondEdit_H_
  18. #define __MatchCondEdit_H_
  19. #include "dialog.h"
  20. #include "atltmp.h"
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CMatchCondEditor
  23. class CMatchCondEditor;
  24. typedef CIASDialog<CMatchCondEditor, FALSE> MATCHCONDEDITORFALSE;
  25. class CMatchCondEditor : public CIASDialog<CMatchCondEditor, FALSE>
  26. {
  27. public:
  28. CMatchCondEditor();
  29. ~CMatchCondEditor();
  30. enum { IDD = IDD_DIALOG_MATCH_COND};
  31. BEGIN_MSG_MAP(CMatchCondEditor)
  32. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  33. COMMAND_ID_HANDLER(IDOK, OnOK)
  34. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  35. COMMAND_CODE_HANDLER(EN_CHANGE, OnChange)
  36. CHAIN_MSG_MAP(MATCHCONDEDITORFALSE)
  37. END_MSG_MAP()
  38. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  39. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  40. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  41. LRESULT OnChange(
  42. UINT uMsg
  43. , WPARAM wParam
  44. , HWND hwnd
  45. , BOOL& bHandled
  46. );
  47. public:
  48. ATL::CString m_strAttrName; // condition attribute name
  49. ATL::CString m_strRegExp; // condition regular expression
  50. };
  51. #endif //__MatchCondEditor_H_