• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //	CBrowsingPage
35 //---------------------------------------------------------------------------------------------------------------------------
36 
37 class CBrowsingPage : public CPropertyPage
38 {
39 public:
40 	CBrowsingPage();
41 	~CBrowsingPage();
42 
43 protected:
44 
45 	//{{AFX_DATA(CBrowsingPage)
46 	enum { IDD = IDR_APPLET_PAGE3 };
47 	//}}AFX_DATA
48 
49 	//{{AFX_VIRTUAL(CBrowsingPage)
50 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
51 	//}}AFX_VIRTUAL
52 
53 	DECLARE_DYNCREATE(CBrowsingPage)
54 
55 	//{{AFX_MSG(CBrowsingPage)
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 	static int CALLBACK
81 
82 	SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
83 
84 
85 
86 	CListCtrl	m_browseListCtrl;
87 
88 	bool		m_initialized;
89 
90 	bool		m_firstTime;
91 
92 
93 
94 public:
95 
96 
97 
98 	afx_msg void OnBnClickedAddBrowseDomain();
99 
100 	afx_msg void OnBnClickedRemoveBrowseDomain();
101 
102 	afx_msg void OnLvnItemchangedBrowseList(NMHDR *pNMHDR, LRESULT *pResult);
103 
104 	CButton m_removeButton;
105 
106 };
107 
108 
109 
110 
111 
112 //---------------------------------------------------------------------------------------------------------------------------
113 //	CAddBrowseDomain
114 //---------------------------------------------------------------------------------------------------------------------------
115 
116 
117 class CAddBrowseDomain : public CDialog
118 
119 {
120 
121 	DECLARE_DYNAMIC(CAddBrowseDomain)
122 
123 
124 
125 public:
126 
127 	CAddBrowseDomain(CWnd* pParent = NULL);   // standard constructor
128 
129 	virtual ~CAddBrowseDomain();
130 
131 
132 
133 // Dialog Data
134 
135 	enum { IDD = IDR_ADD_BROWSE_DOMAIN };
136 
137 
138 
139 protected:
140 
141 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
142 
143 	virtual BOOL OnInitDialog();
144 
145 	virtual void OnOK();
146 
147 	DECLARE_MESSAGE_MAP()
148 
149 public:
150 
151 	CComboBox	m_comboBox;
152 
153 	CString		m_text;
154 
155 };
156 
157