]>
Commit | Line | Data |
---|---|---|
7cb34e5c A |
1 | /* |
2 | * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * This file contains Original Code and/or Modifications of Original Code | |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. Please obtain a copy of the License at | |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | * file. | |
12 | * | |
13 | * The Original Code and all software distributed under the License are | |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
18 | * Please see the License for the specific language governing rights and | |
19 | * limitations under the License. | |
20 | * | |
21 | * @APPLE_LICENSE_HEADER_END@ | |
22 | ||
23 | Change History (most recent first): | |
24 | ||
25 | $Log: ThirdPage.h,v $ | |
26 | Revision 1.2 2005/03/03 19:55:21 shersche | |
27 | <rdar://problem/4034481> ControlPanel source code isn't saving CVS log info | |
28 | ||
29 | ||
30 | */ | |
31 | ||
32 | #pragma once | |
33 | ||
34 | #include "stdafx.h" | |
35 | #include "resource.h" | |
36 | ||
37 | #include <DebugServices.h> | |
38 | #include <list> | |
39 | #include "afxcmn.h"\r | |
40 | #include "afxwin.h"\r | |
41 | ||
42 | \r | |
43 | ||
44 | //--------------------------------------------------------------------------------------------------------------------------- | |
45 | // CThirdPage | |
46 | //--------------------------------------------------------------------------------------------------------------------------- | |
47 | ||
48 | class CThirdPage : public CPropertyPage | |
49 | { | |
50 | public: | |
51 | CThirdPage(); | |
52 | ~CThirdPage(); | |
53 | ||
54 | protected: | |
55 | ||
56 | //{{AFX_DATA(CThirdPage) | |
57 | enum { IDD = IDR_APPLET_PAGE3 }; | |
58 | //}}AFX_DATA | |
59 | ||
60 | //{{AFX_VIRTUAL(CThirdPage) | |
61 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support | |
62 | //}}AFX_VIRTUAL | |
63 | ||
64 | DECLARE_DYNCREATE(CThirdPage) | |
65 | ||
66 | //{{AFX_MSG(CThirdPage) | |
67 | //}}AFX_MSG | |
68 | DECLARE_MESSAGE_MAP() | |
69 | ||
70 | private: | |
71 | ||
72 | typedef std::list<CString> StringList; | |
73 | ||
74 | afx_msg BOOL | |
75 | OnSetActive(); | |
76 | ||
77 | afx_msg void | |
78 | OnOK(); | |
79 | ||
80 | void | |
81 | SetModified( BOOL bChanged = TRUE ); | |
82 | ||
83 | void | |
84 | Commit(); | |
85 | ||
86 | BOOL m_modified; | |
87 | ||
88 | public: | |
89 | private:\r | |
90 | static int CALLBACK \r | |
91 | SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);\r | |
92 | \r | |
93 | CListCtrl m_browseListCtrl;\r | |
94 | bool m_initialized;\r | |
95 | bool m_firstTime;\r | |
96 | \r | |
97 | public:\r | |
98 | \r | |
99 | afx_msg void OnBnClickedAddBrowseDomain();\r | |
100 | afx_msg void OnBnClickedRemoveBrowseDomain();\r | |
101 | afx_msg void OnLvnItemchangedBrowseList(NMHDR *pNMHDR, LRESULT *pResult);\r | |
102 | CButton m_removeButton;\r | |
103 | };\r | |
104 | \r | |
105 | \r | |
106 | //--------------------------------------------------------------------------------------------------------------------------- | |
107 | // CAddBrowseDomain | |
108 | //--------------------------------------------------------------------------------------------------------------------------- | |
109 | \r | |
110 | class CAddBrowseDomain : public CDialog\r | |
111 | {\r | |
112 | DECLARE_DYNAMIC(CAddBrowseDomain)\r | |
113 | \r | |
114 | public:\r | |
115 | CAddBrowseDomain(CWnd* pParent = NULL); // standard constructor\r | |
116 | virtual ~CAddBrowseDomain();\r | |
117 | \r | |
118 | // Dialog Data\r | |
119 | enum { IDD = IDR_ADD_BROWSE_DOMAIN };\r | |
120 | \r | |
121 | protected:\r | |
122 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r | |
123 | virtual BOOL OnInitDialog();\r | |
124 | virtual void OnOK();\r | |
125 | DECLARE_MESSAGE_MAP()\r | |
126 | public:\r | |
127 | CComboBox m_comboBox;\r | |
128 | CString m_text;\r | |
129 | };\r |