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.

51 lines
1.1 KiB

  1. //***************************************************************************
  2. //
  3. // ABOUTDIALOG.CPP
  4. //
  5. // Module: NLB Manager
  6. //
  7. // Purpose: LeftView, the tree view of NlbManager, and a few other
  8. // smaller classes.
  9. //
  10. // Copyright (c)2001-2002 Microsoft Corporation, All Rights Reserved
  11. //
  12. // History:
  13. //
  14. // 07/30/01 JosephJ adapted MHakim's code
  15. //
  16. //***************************************************************************
  17. #include "precomp.h"
  18. #pragma hdrstop
  19. #include "private.h"
  20. #include "AboutDialog.h"
  21. AboutDialog::AboutDialog(CWnd* parent )
  22. :
  23. CDialog( IDD, parent )
  24. {
  25. }
  26. BOOL
  27. AboutDialog::OnInitDialog()
  28. {
  29. BOOL fRet = CDialog::OnInitDialog();
  30. //
  31. // Initialize the caption and discription based on the type of
  32. // dialog.
  33. //
  34. if (fRet)
  35. {
  36. LPCWSTR szWarning = GETRESOURCEIDSTRING(IDS_ABOUT_WARNING);
  37. CWnd *pItem = GetDlgItem(IDC_STATIC_ABOUT_WARNING);
  38. if (szWarning != NULL && pItem != NULL)
  39. {
  40. pItem->SetWindowText(szWarning);
  41. }
  42. }
  43. return fRet;
  44. }