VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form FrmWebBroswer 
   BackColor       =   &H8000000A&
   Caption         =   "쫷"
   ClientHeight    =   6795
   ClientLeft      =   3015
   ClientTop       =   2700
   ClientWidth     =   9480
   Icon            =   "FrmWebBroswer.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   6795
   ScaleWidth      =   9480
   WindowState     =   2  'Maximized
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   1080
      Top             =   6480
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   10080
      Top             =   6480
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   540
      Left            =   0
      TabIndex        =   9
      Top             =   0
      Width           =   9480
      _ExtentX        =   16722
      _ExtentY        =   953
      ButtonWidth     =   820
      ButtonHeight    =   794
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   8
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "open"
            ImageKey        =   "open"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "back"
            ImageKey        =   "back"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "forward"
            ImageKey        =   "forward"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "stop"
            ImageKey        =   "stop"
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "refresh"
            ImageKey        =   "refresh"
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "home"
            ImageKey        =   "home"
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "search"
            ImageKey        =   "search"
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
            Object.Width           =   5000
         EndProperty
      EndProperty
      Begin VB.Frame Frame1 
         Height          =   450
         Left            =   3360
         TabIndex        =   13
         Top             =   0
         Width           =   975
         Begin VB.Label Label2 
            Caption         =   "վ"
            Height          =   195
            Left            =   120
            TabIndex        =   14
            Top             =   200
            Width           =   735
         End
      End
      Begin VB.ComboBox ComboLink 
         Height          =   300
         Left            =   4440
         TabIndex        =   11
         Top             =   120
         Width           =   4935
      End
   End
   Begin TabDlg.SSTab SSTabUrl 
      Height          =   5200
      Left            =   0
      TabIndex        =   2
      Top             =   960
      Width           =   9495
      _ExtentX        =   16748
      _ExtentY        =   9181
      _Version        =   393216
      Tabs            =   6
      TabsPerRow      =   6
      TabHeight       =   423
      ShowFocusRect   =   0   'False
      BackColor       =   -2147483638
      TabCaption(0)   =   "Tab 0"
      TabPicture(0)   =   "FrmWebBroswer.frx":014A
      Tab(0).ControlEnabled=   -1  'True
      Tab(0).Control(0)=   "WebBrowser(0)"
      Tab(0).Control(0).Enabled=   0   'False
      Tab(0).ControlCount=   1
      TabCaption(1)   =   "Tab 1"
      TabPicture(1)   =   "FrmWebBroswer.frx":0166
      Tab(1).ControlEnabled=   0   'False
      Tab(1).Control(0)=   "WebBrowser(1)"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).ControlCount=   1
      TabCaption(2)   =   "Tab 2"
      TabPicture(2)   =   "FrmWebBroswer.frx":0182
      Tab(2).ControlEnabled=   0   'False
      Tab(2).Control(0)=   "WebBrowser(2)"
      Tab(2).Control(0).Enabled=   0   'False
      Tab(2).ControlCount=   1
      TabCaption(3)   =   "Tab 3"
      TabPicture(3)   =   "FrmWebBroswer.frx":019E
      Tab(3).ControlEnabled=   0   'False
      Tab(3).Control(0)=   "WebBrowser(3)"
      Tab(3).Control(0).Enabled=   0   'False
      Tab(3).ControlCount=   1
      TabCaption(4)   =   "Tab 4"
      TabPicture(4)   =   "FrmWebBroswer.frx":01BA
      Tab(4).ControlEnabled=   0   'False
      Tab(4).Control(0)=   "WebBrowser(4)"
      Tab(4).Control(0).Enabled=   0   'False
      Tab(4).ControlCount=   1
      TabCaption(5)   =   "Tab 5"
      TabPicture(5)   =   "FrmWebBroswer.frx":01D6
      Tab(5).ControlEnabled=   0   'False
      Tab(5).Control(0)=   "WebBrowser(5)"
      Tab(5).Control(0).Enabled=   0   'False
      Tab(5).Control(1)=   "ComboLinkUrl"
      Tab(5).Control(1).Enabled=   0   'False
      Tab(5).ControlCount=   2
      Begin VB.ComboBox ComboLinkUrl 
         Height          =   300
         Left            =   -69240
         TabIndex        =   12
         Top             =   480
         Visible         =   0   'False
         Width           =   2775
      End
      Begin SHDocVwCtl.WebBrowser WebBrowser 
         Height          =   4680
         Index           =   0
         Left            =   120
         TabIndex        =   3
         Top             =   480
         Width           =   9255
         ExtentX         =   16325
         ExtentY         =   8255
         ViewMode        =   0
         Offline         =   0
         Silent          =   0
         RegisterAsBrowser=   0
         RegisterAsDropTarget=   1
         AutoArrange     =   0   'False
         NoClientEdge    =   0   'False
         AlignLeft       =   0   'False
         ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
         Location        =   ""
      End
      Begin SHDocVwCtl.WebBrowser WebBrowser 
         Height          =   4680
         Index           =   1
         Left            =   -74880
         TabIndex        =   4
         Top             =   480
         Width           =   9255
         ExtentX         =   16325
         ExtentY         =   8255
         ViewMode        =   0
         Offline         =   0
         Silent          =   0
         RegisterAsBrowser=   0
         RegisterAsDropTarget=   1
         AutoArrange     =   0   'False
         NoClientEdge    =   0   'False
         AlignLeft       =   0   'False
         ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
         Location        =   ""
      End
      Begin SHDocVwCtl.WebBrowser WebBrowser 
         Height          =   4680
         Index           =   2
         Left            =   -74880
         TabIndex        =   5
         Top             =   480
         Width           =   9255
         ExtentX         =   16325
         ExtentY         =   8255
         ViewMode        =   0
         Offline         =   0
         Silent          =   0
         RegisterAsBrowser=   0
         RegisterAsDropTarget=   1
         AutoArrange     =   0   'False
         NoClientEdge    =   0   'False
         AlignLeft       =   0   'False
         ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
         Location        =   ""
      End
      Begin SHDocVwCtl.WebBrowser WebBrowser 
         Height          =   4680
         Index           =   3
         Left            =   -74880
         TabIndex        =   6
         Top             =   480
         Width           =   9255
         ExtentX         =   16325
         ExtentY         =   8255
         ViewMode        =   0
         Offline         =   0
         Silent          =   0
         RegisterAsBrowser=   0
         RegisterAsDropTarget=   1
         AutoArrange     =   0   'False
         NoClientEdge    =   0   'False
         AlignLeft       =   0   'False
         ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
         Location        =   ""
      End
      Begin SHDocVwCtl.WebBrowser WebBrowser 
         Height          =   4680
         Index           =   4
         Left            =   -74880
         TabIndex        =   7
         Top             =   480
         Width           =   9255
         ExtentX         =   16325
         ExtentY         =   8255
         ViewMode        =   0
         Offline         =   0
         Silent          =   0
         RegisterAsBrowser=   0
         RegisterAsDropTarget=   1
         AutoArrange     =   0   'False
         NoClientEdge    =   0   'False
         AlignLeft       =   0   'False
         ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
         Location        =   ""
      End
      Begin SHDocVwCtl.WebBrowser WebBrowser 
         Height          =   4680
         Index           =   5
         Left            =   -74880
         TabIndex        =   8
         Top             =   480
         Width           =   9255
         ExtentX         =   16325
         ExtentY         =   8255
         ViewMode        =   0
         Offline         =   0
         Silent          =   0
         RegisterAsBrowser=   0
         RegisterAsDropTarget=   1
         AutoArrange     =   0   'False
         NoClientEdge    =   0   'False
         AlignLeft       =   0   'False
         ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
         Location        =   ""
      End
   End
   Begin VB.ComboBox ComboUrl 
      Height          =   300
      Left            =   1080
      TabIndex        =   1
      Top             =   600
      Width           =   5535
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   8040
      Top             =   480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   24
      ImageHeight     =   24
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   8
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":01F2
            Key             =   "back"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":04D4
            Key             =   "forward"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":07B6
            Key             =   "stop"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":0A98
            Key             =   "refresh"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":0D7A
            Key             =   "home"
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":105C
            Key             =   "search"
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":133E
            Key             =   "open"
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmWebBroswer.frx":1456
            Key             =   "save"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   345
      Left            =   0
      TabIndex        =   10
      Top             =   6450
      Width           =   9480
      _ExtentX        =   16722
      _ExtentY        =   609
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   8
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5997
            MinWidth        =   5997
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            Alignment       =   1
            Object.Width           =   1764
            MinWidth        =   1764
            TextSave        =   "01-7-8"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            Alignment       =   1
            Object.Width           =   1236
            MinWidth        =   1236
            TextSave        =   "15:57"
         EndProperty
         BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   1
            Alignment       =   1
            Enabled         =   0   'False
            Object.Width           =   970
            MinWidth        =   970
            TextSave        =   "CAPS"
         EndProperty
         BeginProperty Panel6 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   2
            Alignment       =   1
            Object.Width           =   970
            MinWidth        =   970
            TextSave        =   "NUM"
         EndProperty
         BeginProperty Panel7 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   3
            Alignment       =   1
            Enabled         =   0   'False
            Object.Width           =   970
            MinWidth        =   970
            TextSave        =   "Ins"
         EndProperty
         BeginProperty Panel8 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   4
            Alignment       =   1
            Enabled         =   0   'False
            Object.Width           =   971
            MinWidth        =   971
            TextSave        =   "SCRL"
         EndProperty
      EndProperty
   End
   Begin VB.Label LabelUrl 
      Caption         =   "ǰַ"
      Height          =   255
      Left            =   240
      TabIndex        =   0
      Top             =   650
      Width           =   735
   End
End
Attribute VB_Name = "FrmWebBroswer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub CmdAddress_Click()
Load frmNoteBook
frmNoteBook.Show
End Sub

Private Sub CmdChat_Click()
Load frmClient
frmClient.Show
End Sub

Private Sub CmdImage_Click()
Load frmControl
frmControl.Show
End Sub



Private Sub CmdText_Click()
Load frmMDI
frmMDI.Show
End Sub

Private Sub CndFtp_Click()
Load frmFtp
frmFtp.Show
End Sub

Private Sub ComboLink_Click()
    Me.WebBrowser(Me.SSTabUrl.Tab).Navigate Me.ComboLinkUrl.List(Me.ComboLink.ListIndex)
End Sub

Private Sub ComboUrl_Click()
Me.WebBrowser(Me.SSTabUrl.Tab).Navigate Me.ComboUrl.Text
End Sub

Private Sub ComboUrl_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    Me.WebBrowser(Me.SSTabUrl.Tab).Navigate Me.ComboUrl.Text
    Call AddUrl
End If
End Sub

Private Sub Form_Load()

For i = 0 To Me.SSTabUrl.Tabs - 1
    Me.SSTabUrl.TabCaption(i) = "Link" + CStr(i + 1)
Next

With Me.ComboLink
    .AddItem "廪ѧ"
    .AddItem "ӭʹ263.net"
    .AddItem "׵÷ۣ"
    .AddItem "ChinaRen --ӭChinaվ"
    .AddItem " , "
    .AddItem ""
    .AddItem ""
    .ListIndex = 0
End With
With Me.ComboLinkUrl
    .AddItem "http://www.tsinghua.edu.cn"
    .AddItem "http://www.freemail.263.net"
    .AddItem "http://www.fanso.com"
    .AddItem "http://www.chinaren.com"
    .AddItem "http://www.renren.com"
    .AddItem "http://www.sina.com"
    .AddItem "http://www.netease.com"
    .ListIndex = 0
End With
End Sub




Private Sub TabStrip1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (X > 8400 And X < 8400 + 975) And (Y > 720 And Y < 720 + 5415) Then
    Me.Webtools.Visible = True
Else
    Me.Webtools.Visible = False
End If
End Sub

Private Sub Image1_Click()
Me.WebBrowser(Me.SSTabUrl.Tab).Navigate "http://www.foxyhunter.chinaren.com"
End Sub





Private Sub SSTabUrl_Click(PreviousTab As Integer)
Me.ComboUrl.Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
Me.StatusBar1.Panels(1).Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
Me.StatusBar1.Panels(2).Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationName
Me.Caption = "쫷---" + Me.WebBrowser(Me.SSTabUrl.Tab).LocationName
End Sub






Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
    Case "open"
        Me.CommonDialog1.ShowOpen
        If Me.CommonDialog1.FileName = "" Then
            Exit Sub
        End If
        Me.WebBrowser(Me.SSTabUrl.Tab).Navigate Me.CommonDialog1.FileName
    Case "save"
        Me.CommonDialog1.ShowSave
    Case "back"
        On Error GoTo errhandle
        Me.WebBrowser(Me.SSTabUrl.Tab).GoBack
    Case "forward"
        On Error GoTo errhandle
        Me.WebBrowser(Me.SSTabUrl.Tab).GoForward
    Case "stop"
        On Error GoTo errhandle
        Me.WebBrowser(Me.SSTabUrl.Tab).Stop
    Case "refresh"
        On Error GoTo errhandle
        Me.WebBrowser(Me.SSTabUrl.Tab).Refresh
    Case "home"
        On Error GoTo errhandle
        Me.WebBrowser(Me.SSTabUrl.Tab).GoHome
    Case "gosearch"
        On Error GoTo errhandle
        Me.WebBrowser(Me.SSTabUrl.Tab).GoSearch
End Select
Me.ComboUrl.Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
errhandle:
        If Not Err.Number = 0 And Not Err.Description = "" Then MsgBox Err.Description
End Sub


Private Sub WebBrowser_BeforeNavigate2(Index As Integer, ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
Me.ComboUrl.Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
Call AddUrl
Me.SSTabUrl.TabCaption(Index) = "Begin"
End Sub

Private Sub WebBrowser_DownloadComplete(Index As Integer)
Me.ComboUrl.Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
Me.StatusBar1.Panels(1).Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
End Sub

Private Sub WebBrowser_NavigateComplete2(Index As Integer, ByVal pDisp As Object, URL As Variant)
Me.StatusBar1.Panels(1).Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationURL
Me.StatusBar1.Panels(2).Text = Me.WebBrowser(Me.SSTabUrl.Tab).LocationName
Call AddUrl
Me.SSTabUrl.TabCaption(Index) = "Finish"
End Sub

Private Sub WebBrowser_ProgressChange(Index As Integer, ByVal Progress As Long, ByVal ProgressMax As Long)
On Error Resume Next
Me.SSTabUrl.TabCaption(Index) = "Loading..." + CStr(Progress / ProgressMax * 100) + "%"
If Progress = ProgressMax Then Me.SSTabUrl.TabCaption(Index) = "Finish"
End Sub

Private Sub WebBrowser_StatusTextChange(Index As Integer, ByVal Text As String)
Me.StatusBar1.Panels(1).Text = Text
End Sub

Private Sub WebBrowser_TitleChange(Index As Integer, ByVal Text As String)
Me.Caption = "쫷---" + Text
End Sub
