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.

85 lines
3.1 KiB

  1. VERSION 5.00
  2. Begin VB.Form frmFileViewer
  3. Caption = "File Viewer Extension"
  4. ClientHeight = 4185
  5. ClientLeft = 60
  6. ClientTop = 345
  7. ClientWidth = 5130
  8. LinkTopic = "Form1"
  9. ScaleHeight = 4185
  10. ScaleWidth = 5130
  11. StartUpPosition = 3 'Windows Default
  12. Begin VB.CommandButton cmdClose
  13. Cancel = -1 'True
  14. Caption = "Close"
  15. Height = 375
  16. Left = 1898
  17. TabIndex = 1
  18. Top = 3720
  19. Width = 1335
  20. End
  21. Begin FileViewerExtensionProj.ctlFileViewer ViewerCtl
  22. Height = 3375
  23. Left = 120
  24. TabIndex = 0
  25. Top = 120
  26. Width = 4935
  27. _ExtentX = 8705
  28. _ExtentY = 5953
  29. End
  30. End
  31. Attribute VB_Name = "frmFileViewer"
  32. Attribute VB_GlobalNameSpace = False
  33. Attribute VB_Creatable = False
  34. Attribute VB_PredeclaredId = True
  35. Attribute VB_Exposed = False
  36. Option Explicit
  37. ' ===========================================================================
  38. ' | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF |
  39. ' | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
  40. ' | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A |
  41. ' | PARTICULAR PURPOSE. |
  42. ' | Copyright (c) 1998-1999 Microsoft Corporation |
  43. ' ===========================================================================
  44. ' =============================================================================
  45. ' File: frmFileViewer.frm
  46. ' Project: FileViewerExtensionProj
  47. ' Type: Form
  48. ' =============================================================================
  49. ' =============================================================================
  50. ' Method: DisplayFile
  51. ' Type: Public Method
  52. ' Description: Called by the snap-in to display the contents of the file.
  53. '
  54. ' Parameters: Path Fully qualified path of file to display
  55. ' Name Name of file to display
  56. ' Output: None
  57. ' Notes: Uses the FileViewerCtl to display the contents of the file.
  58. ' =============================================================================
  59. '
  60. Public Sub DisplayFile(Path As String, FileName As String)
  61. ViewerCtl.DisplayFile Path, FileName
  62. Me.Show vbModal
  63. End Sub
  64. ' =============================================================================
  65. ' Method: cmdClose_Click
  66. ' Type: Event
  67. ' Description: Fired when the user hits the Close button on the form
  68. '
  69. ' Parameters: None
  70. ' Output: None
  71. ' Notes: Hides the form. The form will be destroyed when the snap-in
  72. ' releases it. (See DisplayFile method in FileViewerExtension.dsr).
  73. ' =============================================================================
  74. '
  75. Private Sub cmdClose_Click()
  76. Me.Hide
  77. End Sub