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.

76 lines
1.2 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. //
  3. // Id changes dialog
  4. //
  5. // 3-10-98 sburns
  6. #ifndef IDDLG_HPP_INCLUDED
  7. #define IDDLG_HPP_INCLUDED
  8. class IDChangesDialog : public Dialog
  9. {
  10. public:
  11. IDChangesDialog(bool isPersonal);
  12. virtual ~IDChangesDialog();
  13. // enum ExecuteResult
  14. // {
  15. // NO_CHANGES,
  16. // CHANGES_MADE
  17. // };
  18. //
  19. // // hides Dialog::ModalExecute
  20. //
  21. // ExecuteResult
  22. // ModalExecute(HWND parent);
  23. protected:
  24. // Dialog overrides
  25. virtual
  26. bool
  27. OnCommand(
  28. HWND windowFrom,
  29. unsigned controlIDFrom,
  30. unsigned code);
  31. virtual
  32. void
  33. OnInit();
  34. private:
  35. // enum OkButtonResult
  36. // {
  37. // VALIDATION_FAILED,
  38. // CHANGES_SAVED,
  39. // SAVE_FAILED
  40. // };
  41. // OkButtonResult
  42. bool
  43. OnOkButton();
  44. void enable(HWND hwnd);
  45. // no copying allowed
  46. IDChangesDialog(const IDChangesDialog&);
  47. const IDChangesDialog& operator=(const IDChangesDialog&);
  48. bool isInitializing;
  49. bool fIsPersonal;
  50. };
  51. void
  52. showAndEnableWindow(HWND parent, int resID, int show);
  53. #endif // IDDLG_HPP_INCLUDED