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