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.

74 lines
1.6 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. CntDlg.cpp
  5. Abstract:
  6. This Module contains the implementation of CConnectDialog class
  7. (Dialog box for Connecting to Server)
  8. Author:
  9. Arathi Kundapur (v-akunda) 11-Feb-1998
  10. Revision History:
  11. --*/
  12. #include "stdafx.h"
  13. #include "defines.h"
  14. #include "LicMgr.h"
  15. #include "LSServer.h"
  16. #include "MainFrm.h"
  17. #include "CntDlg.h"
  18. #include "htmlhelp.h"
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CConnectDialog dialog
  26. CConnectDialog::CConnectDialog(CWnd* pParent /*=NULL*/)
  27. : CDialog(CConnectDialog::IDD, pParent)
  28. {
  29. //{{AFX_DATA_INIT(CConnectDialog)
  30. m_Server = _T("");
  31. //}}AFX_DATA_INIT
  32. }
  33. void CConnectDialog::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CDialog::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CConnectDialog)
  37. DDX_Text(pDX, IDC_SERVER, m_Server);
  38. DDV_MaxChars(pDX, m_Server, 100);
  39. //}}AFX_DATA_MAP
  40. }
  41. BEGIN_MESSAGE_MAP(CConnectDialog, CDialog)
  42. //{{AFX_MSG_MAP(CConnectDialog)
  43. ON_BN_CLICKED(IDC_HELP1, OnHelp1)
  44. //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CConnectDialog message handlers
  48. void CConnectDialog::OnHelp1()
  49. {
  50. // TODO: Add your control notification handler code here
  51. TCHAR * pHtml = L"ts_lice_h_040.htm";
  52. HtmlHelp(AfxGetMainWnd()->m_hWnd, L"tslic.chm", HH_DISPLAY_TOPIC,(DWORD_PTR)pHtml);
  53. }