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.

79 lines
1.9 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. class CMonitorPage
  31. {
  32. public:
  33. // Constructors / destructor
  34. CMonitorPage(HWND hDlg);
  35. ~CMonitorPage();
  36. // Message handlers
  37. void OnInitDialog();
  38. void OnDestroy();
  39. void OnApply();
  40. void OnCancel();
  41. void OnProperties();
  42. BOOL OnSetActive();
  43. void OnSelMonitorChanged();
  44. void OnFrequencyChanged();
  45. void OnPruningModeChanged();
  46. #ifdef DBG
  47. void AssertValid() const;
  48. #endif
  49. private:
  50. // Helpers
  51. void InitPruningMode();
  52. void SaveMonitorInstancePath(DEVINST devInstAdapter, LPCTSTR pMonitorID, int nNewItem);
  53. void RefreshFrequenciesList();
  54. // Data members
  55. HWND m_hDlg;
  56. LPDEVMODEW m_lpdmPrevious;
  57. BOOL m_bCanBePruned; // true if the raw modes list != pruned modes list
  58. BOOL m_bIsPruningReadOnly; // false if can be pruned and we can write the pruning mode
  59. BOOL m_bIsPruningOn; // non null if pruning mode is on
  60. int m_cMonitors;
  61. HWND m_hMonitorsList;
  62. LPDEVMODEW m_lpdmOnCancel; // device mode to be restored on cancel
  63. BOOL m_bOnCancelIsPruningOn; // pruning mode to be restored on cancel
  64. };