Main.frm
资源名称:IE_VB.rar [点击查看]
上传用户:davilee3
上传日期:2015-04-22
资源大小:986k
文件大小:4k
源码类别:
浏览器
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form frmMain
- BorderStyle = 1 'Fixed Single
- Caption = "ClearCache"
- ClientHeight = 2550
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 2220
- BeginProperty Font
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 2550
- ScaleWidth = 2220
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton cmdHelp
- Caption = "帮助(&H)"
- Height = 450
- Left = 60
- TabIndex = 4
- Top = 2040
- Width = 2100
- End
- Begin VB.CommandButton cmdNormal
- Caption = "删除缓存文件(&F)"
- Height = 450
- Left = 60
- TabIndex = 0
- Top = 0
- Width = 2100
- End
- Begin VB.CommandButton cmdClearAll
- Caption = "删除所有(&A)"
- Height = 450
- Left = 60
- TabIndex = 3
- Top = 1440
- Width = 2100
- End
- Begin VB.CommandButton cmdUrlHis
- Caption = "清除访问过的链接(&V)"
- BeginProperty Font
- Name = "新宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 60
- TabIndex = 2
- Top = 960
- Width = 2100
- End
- Begin VB.CommandButton cmdClearCookie
- Caption = "删除&Cookie"
- BeginProperty Font
- Name = "新宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 60
- TabIndex = 1
- Top = 480
- Width = 2100
- End
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdClearAll_Click()
- Call DelCache("*.*")
- End Sub
- Private Sub cmdClearCookie_Click()
- Call DelCache("cookie:")
- End Sub
- Private Sub cmdHelp_Click()
- Dim tStr$
- tStr = "ClearCache Ver 1.0." & LTrim(Str(App.Revision)) & vbNewLine & _
- vbNewLine & "用于删除ie缓存文件,cookie等" & vbNewLine & _
- vbNewLine & "命令行参数:" & vbNewLine & _
- "normal : 删除缓存文件" & vbNewLine & _
- "cookie : 删除cookie" & vbNewLine & _
- "visited : 清除访问过的链接历史记录" & vbNewLine & _
- "all : 清除所有,以上三个功能的叠加" & vbNewLine & _
- vbNewLine & "by lingll" & vbNewLine & "lingll.yeah.net"
- MsgBox tStr, vbOKOnly
- End Sub
- Private Sub cmdNormal_Click()
- Call DelCache("*.*", URLHISTORY_CACHE_ENTRY Or COOKIE_CACHE_ENTRY)
- End Sub
- Private Sub cmdUrlHis_Click()
- Call DelCache("visited:")
- End Sub
- Private Sub TestCacheType(vType&)
- 'If (vType And COOKIE_CACHE_ENTRY) <> 0 Then
- ' Debug.Print "cookie",
- 'End If
- '
- 'If (vType And URLHISTORY_CACHE_ENTRY) <> 0 Then
- ' Debug.Print "history",
- 'End If
- '
- 'If (vType And NORMAL_CACHE_ENTRY) <> 0 Then
- ' Debug.Print "normal",
- 'End If
- '
- 'If (vType And TRACK_OFFLINE_CACHE_ENTRY) <> 0 Then
- ' Debug.Print "offline",
- 'End If
- 'If (vType And TRACK_ONLINE_CACHE_ENTRY) <> 0 Then
- ' Debug.Print "online",
- 'End If
- 'Debug.Print
- End Sub