/****************************************************************************** Source File: deskmon.h General include file Copyright (c) 1997-1998 by Microsoft Corporation Change History: 12-01-97 AndreVa - Created It ******************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "..\..\common\deskcplext.h" #include "..\..\common\propsext.h" #include "..\..\common\deskcmmn.h" #include "resource.h" #define STRSAFE_LIB #include class CMonitorPage { public: // Constructors / destructor CMonitorPage(HWND hDlg); // Message handlers void OnInitDialog(); void OnDestroy(); void OnApply(); void OnCancel(); void OnProperties(); BOOL OnSetActive(); void OnSelMonitorChanged(); void OnFrequencyChanged(); void OnPruningModeChanged(); private: // Helpers void InitPruningMode(); void SaveMonitorInstancePath(DEVINST devInstAdapter, LPCTSTR pMonitorID, int nNewItem); void RefreshFrequenciesList(); // Data members HWND m_hDlg; LPDEVMODEW m_lpdmPrevious; BOOL m_bCanBePruned; // true if the raw modes list != pruned modes list BOOL m_bIsPruningReadOnly; // false if can be pruned and we can write the pruning mode BOOL m_bIsPruningOn; // non null if pruning mode is on int m_cMonitors; HWND m_hMonitorsList; LPDEVMODEW m_lpdmOnCancel; // device mode to be restored on cancel BOOL m_bOnCancelIsPruningOn; // pruning mode to be restored on cancel };