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.

141 lines
3.6 KiB

  1. '//+----------------------------------------------------------------------------
  2. '//
  3. '// File: about.frm
  4. '//
  5. '// Module: pbadmin.exe
  6. '//
  7. '// Synopsis: The about dialog for PBA
  8. '//
  9. '// Copyright (c) 1997-1999 Microsoft Corporation
  10. '//
  11. '// Author: quintinb Created Header 09/02/99
  12. '//
  13. '//+----------------------------------------------------------------------------
  14. VERSION 5.00
  15. Begin VB.Form frmabout
  16. BorderStyle = 3 'Fixed Dialog
  17. ClientHeight = 2760
  18. ClientLeft = 1830
  19. ClientTop = 1725
  20. ClientWidth = 6930
  21. Icon = "about.frx":0000
  22. KeyPreview = -1 'True
  23. LinkTopic = "Form1"
  24. MaxButton = 0 'False
  25. MinButton = 0 'False
  26. PaletteMode = 1 'UseZOrder
  27. ScaleHeight = 2760
  28. ScaleWidth = 6930
  29. ShowInTaskbar = 0 'False
  30. Begin VB.Frame Frame1
  31. Appearance = 0 'Flat
  32. ForeColor = &H80000008&
  33. Height = 1395
  34. Left = 165
  35. TabIndex = 5
  36. Top = 1260
  37. Width = 6585
  38. Begin VB.Label WarningLabel
  39. Caption = "Warning: "
  40. Height = 1155
  41. Left = 120
  42. TabIndex = 6
  43. Top = 165
  44. Width = 6345
  45. End
  46. End
  47. Begin VB.PictureBox Picture1
  48. BorderStyle = 0 'None
  49. Height = 615
  50. Left = 150
  51. Picture = "about.frx":000C
  52. ScaleHeight = 615
  53. ScaleWidth = 735
  54. TabIndex = 2
  55. Top = 120
  56. Width = 735
  57. End
  58. Begin VB.CommandButton Command1
  59. Cancel = -1 'True
  60. Caption = "ok"
  61. Default = -1 'True
  62. Height = 330
  63. Left = 5760
  64. TabIndex = 0
  65. Top = 300
  66. Width = 975
  67. End
  68. Begin VB.Label CopyrightLabel
  69. Height = 255
  70. Left = 1080
  71. TabIndex = 4
  72. Top = 855
  73. Width = 4425
  74. End
  75. Begin VB.Label VersionLabel
  76. Height = 255
  77. Left = 1080
  78. TabIndex = 3
  79. Top = 465
  80. Width = 2145
  81. End
  82. Begin VB.Label AppLabel
  83. Height = 255
  84. Left = 1080
  85. TabIndex = 1
  86. Top = 225
  87. Width = 4335
  88. End
  89. End
  90. Attribute VB_Name = "frmabout"
  91. Attribute VB_GlobalNameSpace = False
  92. Attribute VB_Creatable = False
  93. Attribute VB_PredeclaredId = True
  94. Attribute VB_Exposed = False
  95. Option Explicit
  96. Function LoadAboutRes()
  97. Dim cRef As Integer
  98. On Error GoTo LoadErr
  99. cRef = 6000
  100. Me.Caption = LoadResString(cRef + 4) & " " & frmMain.Caption
  101. VersionLabel.Caption = LoadResString(cRef + 1)
  102. CopyrightLabel.Caption = LoadResString(cRef + 2)
  103. WarningLabel.Caption = LoadResString(cRef + 3)
  104. Command1.Caption = LoadResString(1002)
  105. ' Set Fonts
  106. SetFonts Me
  107. On Error GoTo 0
  108. Exit Function
  109. LoadErr:
  110. Exit Function
  111. End Function
  112. Private Sub Command1_Click()
  113. Unload Me
  114. End Sub
  115. Private Sub Form_Load()
  116. On Error GoTo LoadErr
  117. CenterForm Me, Screen
  118. AppLabel.Caption = App.title
  119. LoadAboutRes
  120. VersionLabel.Caption = VersionLabel.Caption & " " & App.Major & "." & _
  121. App.Minor & " (" & "6.0." & App.Revision & ".0)"
  122. On Error GoTo 0
  123. Exit Sub
  124. LoadErr:
  125. Exit Sub
  126. End Sub