xref: /minix3/external/bsd/bind/dist/bin/win32/BINDInstall/DirBrowse.h (revision 00b67f09dd46474d133c95011a48590a8e8f94c7)
1 /*	$NetBSD: DirBrowse.h,v 1.4 2014/12/10 04:37:55 christos Exp $	*/
2 
3 /*
4  * Portions Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
5  * Portions Copyright (C) 2001  Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /* Id: DirBrowse.h,v 1.6 2007/06/19 23:47:07 tbox Exp  */
21 
22 /*
23  * Copyright (c) 1999-2000 by Nortel Networks Corporation
24  *
25  * Permission to use, copy, modify, and distribute this software for any
26  * purpose with or without fee is hereby granted, provided that the above
27  * copyright notice and this permission notice appear in all copies.
28  *
29  * THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS
30  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
31  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS
32  * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
33  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
34  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
35  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
36  * SOFTWARE.
37  */
38 
39 #ifndef DIRBROWSE_H
40 #define DIRBROWSE_H
41 
42 class CDirBrowse : public CDialog
43 {
44 // Construction
45 public:
46 	CDirBrowse(CString initialDir = "\\", CWnd* pParent = NULL);   // standard constructor
GetSelectedDir()47 	CString GetSelectedDir() {return(m_selectedDir);}
48 
49 	//{{AFX_DATA(CDirBrowse)
50 	enum { IDD = IDD_BROWSE };
51 		// NOTE: the ClassWizard will add data members here
52 	//}}AFX_DATA
53 
54 	// ClassWizard generated virtual function overrides
55 	//{{AFX_VIRTUAL(CDirBrowse)
56 	protected:
57 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
58 	//}}AFX_VIRTUAL
59 
60 protected:
61 	// Generated message map functions
62 	//{{AFX_MSG(CDirBrowse)
63 	virtual BOOL OnInitDialog();
64 	afx_msg void OnDblclkDirlist();
65 	afx_msg void OnSelchangeDirlist();
66 	//}}AFX_MSG
67 	DECLARE_MESSAGE_MAP()
68 
69 private:
70 	CString m_selectedDir;
71 };
72 
73 #endif
74