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.

175 lines
3.8 KiB

  1. VERSION 4.00
  2. Begin VB.Form browsectl
  3. Caption = "Explorer in a form"
  4. ClientHeight = 5745
  5. ClientLeft = 2745
  6. ClientTop = 1455
  7. ClientWidth = 7920
  8. Height = 6150
  9. Left = 2685
  10. LinkTopic = "Form2"
  11. ScaleHeight = 5745
  12. ScaleWidth = 7920
  13. Top = 1110
  14. Width = 8040
  15. Begin VB.CommandButton Search
  16. Caption = "Search"
  17. Height = 375
  18. Left = 6240
  19. TabIndex = 5
  20. Top = 120
  21. Width = 735
  22. End
  23. Begin VB.TextBox Location
  24. Height = 375
  25. Left = 120
  26. TabIndex = 4
  27. Top = 120
  28. Width = 3855
  29. End
  30. Begin VB.CommandButton Home
  31. Caption = "Home"
  32. Height = 375
  33. Left = 5520
  34. TabIndex = 3
  35. Top = 120
  36. Width = 735
  37. End
  38. Begin VB.CommandButton Forward
  39. Caption = ">"
  40. Height = 375
  41. Left = 4920
  42. TabIndex = 2
  43. Top = 120
  44. Width = 615
  45. End
  46. Begin VB.CommandButton Back
  47. Caption = "<"
  48. Height = 375
  49. Left = 4200
  50. TabIndex = 1
  51. Top = 120
  52. Width = 735
  53. End
  54. Begin ComctlLib.StatusBar StatusBar
  55. Align = 2 'Align Bottom
  56. Height = 495
  57. Left = 0
  58. TabIndex = 6
  59. Top = 5250
  60. Width = 7920
  61. _Version = 65536
  62. _ExtentX = 13970
  63. _ExtentY = 873
  64. _StockProps = 68
  65. AlignSet = -1 'True
  66. SimpleText = ""
  67. i1 = "browsctl.frx":0000
  68. End
  69. Begin SHDocVwCtl.ShellExplorer Explorer
  70. Height = 4455
  71. Left = 120
  72. OleObjectBlob = "browsctl.frx":010C
  73. TabIndex = 0
  74. Top = 720
  75. Width = 7575
  76. End
  77. End
  78. Attribute VB_Name = "browsectl"
  79. Attribute VB_Creatable = False
  80. Attribute VB_Exposed = False
  81. Private Sub ShellFolderOC1_Click()
  82. End Sub
  83. Private Sub Back_Click()
  84. On Error GoTo Boom
  85. Explorer.GoBack
  86. GoTo endfunc
  87. Boom:
  88. Beep
  89. endfunc:
  90. End Sub
  91. Private Sub Explorer_OnBeginNavigate(ByVal HLink As Object, Cancel As Boolean)
  92. On Error GoTo Boom:
  93. StatusBar.Panels(1).Text = HLink.Location
  94. GoTo Done
  95. Boom:
  96. Beep
  97. Done:
  98. End Sub
  99. Private Sub Explorer_OnNavigate(ByVal HLink As Object)
  100. On Error GoTo Boom
  101. Location = HLink.Location
  102. GoTo endfunc
  103. Boom:
  104. Beep
  105. endfunc:
  106. End Sub
  107. Private Sub Explorer_OnStatusTextChange(ByVal bstrText As String)
  108. StatusBar.Panels(1).Text = bstrText
  109. End Sub
  110. Private Sub Form_Resize()
  111. Explorer.Width = Width - (Explorer.Left * 2)
  112. Explorer.Height = Height - (StatusBar.Height + Explorer.Top + (2 * (Explorer.Top - (Location.Top + Location.Height))))
  113. End Sub
  114. Private Sub Forward_Click()
  115. On Error GoTo Boom
  116. Explorer.GoForward
  117. GoTo endfunc
  118. Boom:
  119. Beep
  120. endfunc:
  121. End Sub
  122. Private Sub Home_Click()
  123. On Error GoTo Boom
  124. Explorer.GoHome
  125. GoTo endfunc
  126. Boom:
  127. Beep
  128. endfunc:
  129. End Sub
  130. Private Sub Location_KeyPress(KeyAscii As Integer)
  131. If KeyAscii = 13 Then
  132. Explorer.Location = Location
  133. End If
  134. End Sub
  135. Private Sub Search_Click()
  136. On Error GoTo Boom
  137. Explorer.GoSearch
  138. GoTo endfunc
  139. Boom:
  140. Beep
  141. endfunc:
  142. End Sub
  143. Private Sub StatusBar1_PanelClick(ByVal Panel As Panel)
  144. End Sub