PluginSH.cls
资源名称:IE_VB.rar [点击查看]
上传用户:davilee3
上传日期:2015-04-22
资源大小:986k
文件大小:2k
源码类别:
浏览器
开发平台:
Visual Basic
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- Persistable = 0 'NotPersistable
- DataBindingBehavior = 0 'vbNone
- DataSourceBehavior = 0 'vbNone
- MTSTransactionMode = 0 'NotAnMTSObject
- END
- Attribute VB_Name = "cPluginSH"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = True
- Attribute VB_PredeclaredId = False
- Attribute VB_Exposed = True
- '---------------------------------------------------------------------------------------
- ' Module : cPluginSH
- ' DateTime : 2005-8-15 16:58
- ' Author : Lingll
- ' Purpose :
- '---------------------------------------------------------------------------------------
- Option Explicit
- Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
- Private m_oWeb As SHDocVw.WebBrowser
- Private m_oLeInfo As LEPluginLib.ILEInfo
- Implements LEPluginLib.ILEpluginCmd
- Private Function ILEpluginCmd_RunCommand(Optional ByVal lParam As Long = 0&) As Boolean
- Dim tFrm As frmMain
- Dim tHtmlText$
- Dim tTitle$
- 'On Error Resume Next
- If Not m_oWeb Is Nothing Then
- Set tFrm = New frmMain
- tHtmlText = GetHtml(m_oWeb)
- If LenB(tHtmlText) = 0 Then
- tHtmlText = "(error...)"
- End If
- tTitle = m_oWeb.Document.Title
- If tTitle = "" Then
- tTitle = m_oWeb.LocationURL
- End If
- tFrm.INIme tTitle, tHtmlText, m_oLeInfo
- tFrm.Show
- SetWindowLong tFrm.hwnd, -8, m_oLeInfo.GetMainWindowObj.hwnd
- End If
- End Function
- Private Sub ILEpluginCmd_SetSite(ByVal pUnkSite As stdole.IUnknown, ByVal vOutPort As LEPluginLib.ILEInfo)
- Set m_oWeb = pUnkSite
- Set m_oLeInfo = vOutPort
- End Sub
- Private Sub ILEpluginCmd_ShowOption()
- MsgBox "Show Selection Html ver 1.0"
- End Sub