LINUX: afs_create infinite fetchStatus loop
[pkg-k5-afs_openafs.git] / src / WINNT / client_exp / symlinks_dlg.cpp
blobae39fb267682207331058c52362ea1ec07a6f291
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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
8 */
10 extern "C" {
11 #include <afs/param.h>
12 #include <afs/stds.h>
15 #include "stdafx.h"
16 #include "afs_shl_ext.h"
17 #include "symlinks_dlg.h"
19 #ifdef _DEBUG
20 #define new DEBUG_NEW
21 #undef THIS_FILE
22 static char THIS_FILE[] = __FILE__;
23 #endif
25 /////////////////////////////////////////////////////////////////////////////
26 // CSymlinksDlg dialog
29 CSymlinksDlg::CSymlinksDlg(CWnd* pParent /*=NULL*/)
30 : CDialog()
32 InitModalIndirect (TaLocale_GetDialogResource (CSymlinksDlg::IDD), pParent);
34 //{{AFX_DATA_INIT(CSymlinksDlg)
35 // NOTE: the ClassWizard will add member initialization here
36 //}}AFX_DATA_INIT
40 void CSymlinksDlg::DoDataExchange(CDataExchange* pDX)
42 CDialog::DoDataExchange(pDX);
43 //{{AFX_DATA_MAP(CSymlinksDlg)
44 DDX_Control(pDX, IDC_LIST, m_List);
45 //}}AFX_DATA_MAP
49 BEGIN_MESSAGE_MAP(CSymlinksDlg, CDialog)
50 //{{AFX_MSG_MAP(CSymlinksDlg)
51 ON_BN_CLICKED(IDHELP, OnHelp)
52 //}}AFX_MSG_MAP
53 END_MESSAGE_MAP()
55 /////////////////////////////////////////////////////////////////////////////
56 // CSymlinksDlg message handlers
58 BOOL CSymlinksDlg::OnInitDialog()
60 CDialog::OnInitDialog();
62 int tabs[] = { 64 };
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);