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.

77 lines
2.0 KiB

  1. /******************************************************************************
  2. Source File: deskmon.h
  3. General include file
  4. Copyright (c) 1997-1998 by Microsoft Corporation
  5. Change History:
  6. 12-01-97 AndreVa - Created It
  7. ******************************************************************************/
  8. #include <nt.h>
  9. #include <ntrtl.h>
  10. #include <nturtl.h>
  11. #include <windows.h>
  12. #include <windowsx.h>
  13. #include <prsht.h>
  14. #include <shlobj.h>
  15. #include <shlwapi.h>
  16. #include <shsemip.h>
  17. #include <stdlib.h>
  18. #include <shlobjp.h>
  19. #include <shellp.h>
  20. #include <string.h>
  21. #include <tchar.h>
  22. #include <winuserp.h>
  23. #include <cfgmgr32.h>
  24. #include <initguid.h>
  25. #include <help.h>
  26. #include "..\..\common\deskcplext.h"
  27. #include "..\..\common\propsext.h"
  28. #include "..\..\common\deskcmmn.h"
  29. #include "resource.h"
  30. #define STRSAFE_LIB
  31. #include <strsafe.h>
  32. class CMonitorPage
  33. {
  34. public:
  35. // Constructors / destructor
  36. CMonitorPage(HWND hDlg);
  37. // Message handlers
  38. void OnInitDialog();
  39. void OnDestroy();
  40. void OnApply();
  41. void OnCancel();
  42. void OnProperties();
  43. BOOL OnSetActive();
  44. void OnSelMonitorChanged();
  45. void OnFrequencyChanged();
  46. void OnPruningModeChanged();
  47. private:
  48. // Helpers
  49. void InitPruningMode();
  50. void SaveMonitorInstancePath(DEVINST devInstAdapter, LPCTSTR pMonitorID, int nNewItem);
  51. void RefreshFrequenciesList();
  52. // Data members
  53. HWND m_hDlg;
  54. LPDEVMODEW m_lpdmPrevious;
  55. BOOL m_bCanBePruned; // true if the raw modes list != pruned modes list
  56. BOOL m_bIsPruningReadOnly; // false if can be pruned and we can write the pruning mode
  57. BOOL m_bIsPruningOn; // non null if pruning mode is on
  58. int m_cMonitors;
  59. HWND m_hMonitorsList;
  60. LPDEVMODEW m_lpdmOnCancel; // device mode to be restored on cancel
  61. BOOL m_bOnCancelIsPruningOn; // pruning mode to be restored on cancel
  62. };