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.

57 lines
951 B

  1. // Copyright (c) 2000 Microsoft Corporation
  2. //
  3. // Dlg to inform user of a non-rfc computer name
  4. //
  5. // 18 Aug 2000 sburns
  6. #ifndef NONRFCCOMPUTERNAMEDIALOG_HPP_INCLUDED
  7. #define NONRFCCOMPUTERNAMEDIALOG_HPP_INCLUDED
  8. class NonRfcComputerNameDialog : public Dialog
  9. {
  10. public:
  11. explicit
  12. NonRfcComputerNameDialog(const String& computerName_);
  13. virtual ~NonRfcComputerNameDialog();
  14. enum ResultCode
  15. {
  16. CONTINUE,
  17. RENAME
  18. };
  19. protected:
  20. // Dialog overrides
  21. virtual
  22. bool
  23. OnCommand(
  24. HWND windowFrom,
  25. unsigned controlIdFrom,
  26. unsigned code);
  27. virtual
  28. void
  29. OnInit();
  30. private:
  31. String computerName;
  32. // not defined: no copying allowed
  33. NonRfcComputerNameDialog(const NonRfcComputerNameDialog&);
  34. const NonRfcComputerNameDialog& operator=(const NonRfcComputerNameDialog&);
  35. };
  36. #endif // NONRFCCOMPUTERNAMEDIALOG_HPP_INCLUDED