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 "down_servers_dlg.h"
24 static char THIS_FILE
[] = __FILE__
;
27 /////////////////////////////////////////////////////////////////////////////
28 // CDownServersDlg dialog
31 CDownServersDlg::CDownServersDlg(CWnd
* pParent
/*=NULL*/)
34 InitModalIndirect (TaLocale_GetDialogResource (CDownServersDlg::IDD
), pParent
);
36 //{{AFX_DATA_INIT(CDownServersDlg)
37 // NOTE: the ClassWizard will add member initialization here
41 void CDownServersDlg::DoDataExchange(CDataExchange
* pDX
)
43 CDialog::DoDataExchange(pDX
);
44 //{{AFX_DATA_MAP(CDownServersDlg)
45 DDX_Control(pDX
, IDC_LIST
, m_ServerList
);
49 BEGIN_MESSAGE_MAP(CDownServersDlg
, CDialog
)
50 //{{AFX_MSG_MAP(CDownServersDlg)
54 /////////////////////////////////////////////////////////////////////////////
55 // CDownServersDlg message handlers
57 BOOL
CDownServersDlg::OnInitDialog()
59 CDialog::OnInitDialog();
61 for (int i
= 0; i
< m_ServerNames
.GetSize(); i
++)
62 m_ServerList
.AddString(m_ServerNames
[i
]);
64 return TRUE
; // return TRUE unless you set the focus to a control
65 // EXCEPTION: OCX Property Pages should return FALSE
68 void CDownServersDlg::SetServerNames(const CStringArray
& serverNames
)
70 m_ServerNames
.RemoveAll();
72 m_ServerNames
.Copy(serverNames
);