2 * Copyright (C) 1997 Transarc Corporation.
7 // mount_points_dlg.cpp : implementation file
11 #include <afs/param.h>
16 #include "afs_shl_ext.h"
17 #include "mount_points_dlg.h"
22 static char THIS_FILE[] = __FILE__;
25 /////////////////////////////////////////////////////////////////////////////
26 // CMountPointsDlg dialog
29 CMountPointsDlg::CMountPointsDlg(CWnd* pParent /*=NULL*/)
32 InitModalIndirect (TaLocale_GetDialogResource (CMountPointsDlg::IDD), pParent);
34 //{{AFX_DATA_INIT(CMountPointsDlg)
35 // NOTE: the ClassWizard will add member initialization here
40 void CMountPointsDlg::DoDataExchange(CDataExchange* pDX)
42 CDialog::DoDataExchange(pDX);
43 //{{AFX_DATA_MAP(CMountPointsDlg)
44 DDX_Control(pDX, IDC_LIST, m_List);
49 BEGIN_MESSAGE_MAP(CMountPointsDlg, CDialog)
50 //{{AFX_MSG_MAP(CMountPointsDlg)
51 ON_BN_CLICKED(IDHELP, OnHelp)
55 /////////////////////////////////////////////////////////////////////////////
56 // CMountPointsDlg message handlers
58 BOOL CMountPointsDlg::OnInitDialog()
60 CDialog::OnInitDialog();
62 int tabs[] = { 64, 145, 220 };
64 m_List.SetTabStops(sizeof(tabs) / sizeof(int), tabs);
66 for (int i = 0; i < m_MountPoints.GetSize(); i++)
67 m_List.AddString(m_MountPoints[i]);
69 return TRUE; // return TRUE unless you set the focus to a control
70 // EXCEPTION: OCX Property Pages should return FALSE
73 void CMountPointsDlg::SetMountPoints(const CStringArray& mountPoints)
75 m_MountPoints.RemoveAll();
77 m_MountPoints.Copy(mountPoints);
80 void CMountPointsDlg::OnHelp()
82 ShowHelp(m_hWnd, MOUNT_POINTS_HELP_ID);