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
15 #include <afs/param.h>
19 #include "afs_shl_ext.h"
20 #include "mount_points_dlg.h"
25 static char THIS_FILE
[] = __FILE__
;
28 /////////////////////////////////////////////////////////////////////////////
29 // CMountPointsDlg dialog
32 CMountPointsDlg::CMountPointsDlg(CWnd
* pParent
/*=NULL*/)
35 InitModalIndirect (TaLocale_GetDialogResource (CMountPointsDlg::IDD
), pParent
);
37 //{{AFX_DATA_INIT(CMountPointsDlg)
38 // NOTE: the ClassWizard will add member initialization here
43 void CMountPointsDlg::DoDataExchange(CDataExchange
* pDX
)
45 CDialog::DoDataExchange(pDX
);
46 //{{AFX_DATA_MAP(CMountPointsDlg)
47 DDX_Control(pDX
, IDC_LIST
, m_List
);
52 BEGIN_MESSAGE_MAP(CMountPointsDlg
, CDialog
)
53 //{{AFX_MSG_MAP(CMountPointsDlg)
54 ON_BN_CLICKED(IDHELP
, OnHelp
)
58 /////////////////////////////////////////////////////////////////////////////
59 // CMountPointsDlg message handlers
61 BOOL
CMountPointsDlg::OnInitDialog()
63 CDialog::OnInitDialog();
65 int tabs
[] = { 64, 145, 220 };
67 m_List
.SetTabStops(sizeof(tabs
) / sizeof(int), tabs
);
69 for (int i
= 0; i
< m_MountPoints
.GetSize(); i
++)
70 m_List
.AddString(m_MountPoints
[i
]);
72 return TRUE
; // return TRUE unless you set the focus to a control
73 // EXCEPTION: OCX Property Pages should return FALSE
76 void CMountPointsDlg::SetMountPoints(const CStringArray
& mountPoints
)
78 m_MountPoints
.RemoveAll();
80 m_MountPoints
.Copy(mountPoints
);
83 void CMountPointsDlg::OnHelp()
85 ShowHelp(m_hWnd
, MOUNT_POINTS_HELP_ID
);