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.

68 lines
1.5 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: NetDetectProgressDialog.h
  4. //
  5. // Synopsis: Declares the NetDetectProgressDialog which
  6. // gives a nice animation while detecting the
  7. // network settings
  8. //
  9. // History: 06/13/2001 JeffJon Created
  10. #ifndef __CYS_NETDETECTPROGRESSDIALOG_H
  11. #define __CYS_NETDETECTPROGRESSDIALOG_H
  12. #include "CYSWizardPage.h"
  13. class NetDetectProgressDialog : public Dialog
  14. {
  15. public:
  16. // These messages are sent to the dialog when the
  17. // network detection has finished.
  18. static const UINT CYS_THREAD_SUCCESS;
  19. static const UINT CYS_THREAD_FAILED;
  20. static const UINT CYS_THREAD_USER_CANCEL;
  21. typedef void (*ThreadProc) (NetDetectProgressDialog& dialog);
  22. // Constructor
  23. NetDetectProgressDialog();
  24. // Destructor
  25. virtual
  26. ~NetDetectProgressDialog();
  27. // Dialog overrides
  28. virtual
  29. void
  30. OnInit();
  31. virtual
  32. bool
  33. OnMessage(
  34. UINT message,
  35. WPARAM wparam,
  36. LPARAM lparam);
  37. // Accessors
  38. bool
  39. ShouldCancel() { return shouldCancel; }
  40. private:
  41. bool shouldCancel;
  42. // not defined: no copying allowed
  43. NetDetectProgressDialog(const NetDetectProgressDialog&);
  44. const NetDetectProgressDialog& operator=(const NetDetectProgressDialog&);
  45. };
  46. #endif // __CYS_NETDETECTPROGRESSDIALOG_H