]> git.saurik.com Git - apple/mdnsresponder.git/blame - mDNSWindows/ControlPanel/ControlPanel.h
mDNSResponder-107.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / ControlPanel.h
CommitLineData
7cb34e5c
A
1/*\r
2 * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.\r
3 *\r
4 * @APPLE_LICENSE_HEADER_START@\r
5 * \r
6 * This file contains Original Code and/or Modifications of Original Code\r
7 * as defined in and that are subject to the Apple Public Source License\r
8 * Version 2.0 (the 'License'). You may not use this file except in\r
9 * compliance with the License. Please obtain a copy of the License at\r
10 * http://www.opensource.apple.com/apsl/ and read it before using this\r
11 * file.\r
12 * \r
13 * The Original Code and all software distributed under the License are\r
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER\r
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,\r
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,\r
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.\r
18 * Please see the License for the specific language governing rights and\r
19 * limitations under the License.\r
20 * \r
21 * @APPLE_LICENSE_HEADER_END@\r
22\r
23 Change History (most recent first):\r
24\r
25$Log: ControlPanel.h,v $
26Revision 1.2 2005/03/03 19:55:21 shersche
27<rdar://problem/4034481> ControlPanel source code isn't saving CVS log info
28\r
29\r
30*/\r
31\r
32 \r
33#pragma once\r
34\r
35#include "stdafx.h"\r
36\r
37//---------------------------------------------------------------------------------------------------------------------------\r
38// CCPApplet\r
39//---------------------------------------------------------------------------------------------------------------------------\r
40\r
41class CCPApplet : public CCmdTarget\r
42{\r
43public:\r
44\r
45 CCPApplet( UINT nResourceID, UINT nDescriptionID, CRuntimeClass* pUIClass );\r
46\r
47 virtual ~CCPApplet();\r
48\r
49protected:\r
50\r
51 virtual LRESULT OnRun(CWnd* pParentWnd);\r
52 virtual LRESULT OnStartParms(CWnd* pParentWnd, LPCTSTR lpszExtra);\r
53 virtual LRESULT OnInquire(CPLINFO* pInfo);\r
54 virtual LRESULT OnNewInquire(NEWCPLINFO* pInfo);\r
55 virtual LRESULT OnSelect();\r
56 virtual LRESULT OnStop();\r
57\r
58 CRuntimeClass * m_uiClass;\r
59 UINT m_resourceId;\r
60 UINT m_descId;\r
61 CString m_name;\r
62 int m_pageNumber;\r
63 \r
64 friend class CCPApp;\r
65\r
66 DECLARE_DYNAMIC(CCPApplet);\r
67};\r
68\r
69\r
70//---------------------------------------------------------------------------------------------------------------------------\r
71// CCPApp\r
72//---------------------------------------------------------------------------------------------------------------------------\r
73\r
74class CCPApp : public CWinApp\r
75{\r
76public:\r
77\r
78 CCPApp();\r
79 virtual ~CCPApp();\r
80\r
81 void AddApplet( CCPApplet* pApplet );\r
82\r
83protected:\r
84\r
85 CList<CCPApplet*, CCPApplet*&> m_applets;\r
86\r
87 friend LONG APIENTRY\r
88 CPlApplet(HWND hWndCPl, UINT uMsg, LONG lParam1, LONG lParam2);\r
89\r
90 virtual LRESULT OnCplMsg(HWND hWndCPl, UINT msg, LPARAM lp1, LPARAM lp2);\r
91 virtual LRESULT OnInit();\r
92 virtual LRESULT OnExit();\r
93\r
94 DECLARE_DYNAMIC(CCPApp);\r
95};\r
96\r
97\r
98CCPApp * GetControlPanelApp();\r