2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 #include <afs/param.h>
16 #include "afs_shl_ext.h"
17 #include "symlinks_dlg.h"
22 static char THIS_FILE
[] = __FILE__
;
25 /////////////////////////////////////////////////////////////////////////////
26 // CSymlinksDlg dialog
29 CSymlinksDlg::CSymlinksDlg(CWnd
* pParent
/*=NULL*/)
32 InitModalIndirect (TaLocale_GetDialogResource (CSymlinksDlg::IDD
), pParent
);
34 //{{AFX_DATA_INIT(CSymlinksDlg)
35 // NOTE: the ClassWizard will add member initialization here
40 void CSymlinksDlg::DoDataExchange(CDataExchange
* pDX
)
42 CDialog::DoDataExchange(pDX
);
43 //{{AFX_DATA_MAP(CSymlinksDlg)
44 DDX_Control(pDX
, IDC_LIST
, m_List
);
49 BEGIN_MESSAGE_MAP(CSymlinksDlg
, CDialog
)
50 //{{AFX_MSG_MAP(CSymlinksDlg)
51 ON_BN_CLICKED(IDHELP
, OnHelp
)
55 /////////////////////////////////////////////////////////////////////////////
56 // CSymlinksDlg message handlers
58 BOOL
CSymlinksDlg::OnInitDialog()
60 CDialog::OnInitDialog();
64 m_List
.SetTabStops(sizeof(tabs
) / sizeof(int), tabs
);
66 for (int i
= 0; i
< m_Symlinks
.GetSize(); i
++)
67 m_List
.AddString(m_Symlinks
[i
]);
69 return TRUE
; // return TRUE unless you set the focus to a control
70 // EXCEPTION: OCX Property Pages should return FALSE
73 void CSymlinksDlg::SetSymlinks(const CStringArray
& symlinks
)
75 m_Symlinks
.RemoveAll();
77 m_Symlinks
.Copy(symlinks
);
80 void CSymlinksDlg::OnHelp()
82 ShowHelp(m_hWnd
, SYMLINK_HELP_ID
);