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.

72 lines
1.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // resolver.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the class Resolver.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/28/2000 Original version.
  16. // 05/11/2000 Added setButtonStyle and setFocusControl.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef RESOLVER_H
  20. #define RESOLVER_H
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif
  24. #include "dlgcshlp.h"
  25. ///////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CLASS
  28. //
  29. // Resolver
  30. //
  31. // DESCRIPTION
  32. //
  33. // Implements a simple DNS name resolution dialog.
  34. //
  35. ///////////////////////////////////////////////////////////////////////////////
  36. class Resolver : public CHelpDialog
  37. {
  38. public:
  39. Resolver(PCWSTR dnsName, CWnd* pParent = NULL);
  40. ~Resolver() throw ();
  41. PCWSTR getChoice() const throw ()
  42. { return choice; }
  43. protected:
  44. virtual BOOL OnInitDialog();
  45. virtual void DoDataExchange(CDataExchange* pDX);
  46. afx_msg void OnResolve();
  47. DECLARE_MESSAGE_MAP()
  48. // Set (or reset) style flags associated with a button control.
  49. void setButtonStyle(int controlId, long flags, bool set = true);
  50. // Set the focus to a control on the page.
  51. void setFocusControl(int controlId);
  52. private:
  53. CString name;
  54. CString choice;
  55. CListCtrl results;
  56. // Not implemented.
  57. Resolver(const Resolver&);
  58. Resolver& operator=(const Resolver&);
  59. };
  60. #endif // RESOLVER_H