1 /* Copyright 2000, International Business Machines Corporation and others.
4 This software has been released under the terms of the IBM Public
5 License. For details, see the LICENSE file in the top-level source
6 directory or online at http://www.openafs.org/dl/license10.html
8 // Retry.cpp : implementation file
12 #include "winafsload.h"
18 static char THIS_FILE[] = __FILE__;
21 /////////////////////////////////////////////////////////////////////////////
25 CRetry::CRetry(BOOL force,CWnd* pParent /*=NULL*/)
26 : CDialog(CRetry::IDD, pParent)
28 //{{AFX_DATA_INIT(CRetry)
35 void CRetry::DoDataExchange(CDataExchange* pDX)
37 CDialog::DoDataExchange(pDX);
38 //{{AFX_DATA_MAP(CRetry)
39 DDX_Control(pDX, IDC_STATICOPTIONS, m_cOptions);
40 DDX_Control(pDX, IDC_FORCE, m_cForce);
41 DDX_Text(pDX, IDC_STATICMSG, m_sMsg);
46 BEGIN_MESSAGE_MAP(CRetry, CDialog)
47 //{{AFX_MSG_MAP(CRetry)
48 ON_BN_CLICKED(IDC_FORCE, OnForceDismont)
52 /////////////////////////////////////////////////////////////////////////////
53 // CRetry message handlers
55 void CRetry::OnForceDismont()
57 // TODO: Add your control notification handler code here
61 BOOL CRetry::OnInitDialog()
63 CDialog::OnInitDialog();
65 // TODO: Add extra initialization here
69 m_cForce.ModifyStyle(WS_DISABLED,0,0);
70 m_cOptions.SetWindowText("You map shut down any applications that are using the drive letter and then press Retry. Or press Cancel to the bypass the disconnect.\nYou may over-ride the file protection (possible loss of 'opened' file data) and slect Force to disconnect.");
72 m_cForce.ModifyStyle(0,WS_DISABLED,0);
73 m_cOptions.SetWindowText("You may shut down any applications that are using the drive letter and then press Retry. Or press Cancel to the bypass the disconnect.\n('Force' is not premitted.)");
76 return TRUE; // return TRUE unless you set the focus to a control
77 // EXCEPTION: OCX Property Pages should return FALSE