Home | History | Annotate | Download | only in ControlPanel
      1 /* -*- Mode: C; tab-width: 4 -*-
      2  *
      3  * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *     http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 #pragma once
     19 
     20 #include "stdafx.h"
     21 #include "resource.h"
     22 
     23 #include <DebugServices.h>
     24 #include <list>
     25 #include "afxcmn.h"
     26 
     27 #include "afxwin.h"
     28 
     29 
     30 
     31 
     32 
     33 //---------------------------------------------------------------------------------------------------------------------------
     34 //	CFourthPage
     35 //---------------------------------------------------------------------------------------------------------------------------
     36 
     37 class CFourthPage : public CPropertyPage
     38 {
     39 public:
     40 	CFourthPage();
     41 	~CFourthPage();
     42 
     43 protected:
     44 
     45 	//{{AFX_DATA(CFourthPage)
     46 	enum { IDD = IDR_APPLET_PAGE4 };
     47 	//}}AFX_DATA
     48 
     49 	//{{AFX_VIRTUAL(CFourthPage)
     50 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
     51 	//}}AFX_VIRTUAL
     52 
     53 	DECLARE_DYNCREATE(CFourthPage)
     54 
     55 	//{{AFX_MSG(CFourthPage)
     56 	//}}AFX_MSG
     57 	DECLARE_MESSAGE_MAP()
     58 
     59 private:
     60 
     61 	typedef std::list<CString> StringList;
     62 
     63 	afx_msg BOOL
     64 	OnSetActive();
     65 
     66 	afx_msg void
     67 	OnOK();
     68 
     69 	void
     70 	SetModified( BOOL bChanged = TRUE );
     71 
     72 	void
     73 	Commit();
     74 
     75 	BOOL			m_modified;
     76 
     77 public:
     78 private:
     79 
     80 	CButton m_checkBox;
     81 
     82 public:
     83 
     84 
     85 	afx_msg void OnBnClickedPowerManagement();
     86 
     87 };
     88