Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

  1. // dlgconn.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "regtrace.h"
  5. #include "dlgconn.h"
  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char BASED_CODE THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CConnectDlg dialog
  12. CConnectDlg::CConnectDlg(CWnd* pParent /*=NULL*/)
  13. : CDialog(CConnectDlg::IDD, pParent)
  14. {
  15. //{{AFX_DATA_INIT(CConnectDlg)
  16. m_szConnect = _T("");
  17. //}}AFX_DATA_INIT
  18. }
  19. void CConnectDlg::DoDataExchange(CDataExchange* pDX)
  20. {
  21. CDialog::DoDataExchange(pDX);
  22. //{{AFX_DATA_MAP(CConnectDlg)
  23. DDX_Text(pDX, IDC_CONNECT_TXT, m_szConnect);
  24. //}}AFX_DATA_MAP
  25. }
  26. BEGIN_MESSAGE_MAP(CConnectDlg, CDialog)
  27. //{{AFX_MSG_MAP(CConnectDlg)
  28. //}}AFX_MSG_MAP
  29. END_MESSAGE_MAP()
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CConnectDlg message handlers
  32. BOOL CConnectDlg::OnInitDialog()
  33. {
  34. CString szFormat;
  35. szFormat.LoadString( IDS_CONNECT_FORMAT );
  36. m_szConnect.Format( (LPCTSTR)szFormat, App.GetRemoteServerName() );
  37. CDialog::OnInitDialog();
  38. return TRUE; // return TRUE unless you set the focus to a control
  39. // EXCEPTION: OCX Property Pages should return FALSE
  40. }