]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/ControlPanel/ThirdPage.h
mDNSResponder-107.3.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / ThirdPage.h
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"
40 #include "afxwin.h"
41
42
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:
90 static int CALLBACK
91 SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
92
93 CListCtrl m_browseListCtrl;
94 bool m_initialized;
95 bool m_firstTime;
96
97 public:
98
99 afx_msg void OnBnClickedAddBrowseDomain();
100 afx_msg void OnBnClickedRemoveBrowseDomain();
101 afx_msg void OnLvnItemchangedBrowseList(NMHDR *pNMHDR, LRESULT *pResult);
102 CButton m_removeButton;
103 };
104
105
106 //---------------------------------------------------------------------------------------------------------------------------
107 // CAddBrowseDomain
108 //---------------------------------------------------------------------------------------------------------------------------
109
110 class CAddBrowseDomain : public CDialog
111 {
112 DECLARE_DYNAMIC(CAddBrowseDomain)
113
114 public:
115 CAddBrowseDomain(CWnd* pParent = NULL); // standard constructor
116 virtual ~CAddBrowseDomain();
117
118 // Dialog Data
119 enum { IDD = IDR_ADD_BROWSE_DOMAIN };
120
121 protected:
122 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
123 virtual BOOL OnInitDialog();
124 virtual void OnOK();
125 DECLARE_MESSAGE_MAP()
126 public:
127 CComboBox m_comboBox;
128 CString m_text;
129 };