Smart-Tag-Programmierung
Beispiel-DLL: ISmartTagAction-Quelltext
Den Quelltext dieser Klasse können Sie hier downloaden.
Code
Private Property Get ISmartTagAction_VerbCaptionFromID(ByVal VerbID As Long, ByVal ApplicationName As String, ByVal LocaleID As Long) As String
Select Case VerbID
Case 1
ISmartTagAction_VerbCaptionFromID = "MS Word"
Case 2
ISmartTagAction_VerbCaptionFromID = "MS Excel"
Case 3
ISmartTagAction_VerbCaptionFromID = "MS Access"
Case 4
ISmartTagAction_VerbCaptionFromID = "MS Frontpage"
Case 5
ISmartTagAction_VerbCaptionFromID = "MS Outlook"
Case 6
ISmartTagAction_VerbCaptionFromID = "MS Powerpoint"
End Select
End Property
Private Property Get ISmartTagAction_VerbNameFromID(ByVal VerbID As Long) As String
Select Case VerbID
Case 1
ISmartTagAction_VerbNameFromID = "MS Word"
Case 2
ISmartTagAction_VerbNameFromID = "MS Excel"
Case 3
ISmartTagAction_VerbNameFromID = "MS Access"
Case 4
ISmartTagAction_VerbNameFromID = "MS Frontpage"
Case 5
ISmartTagAction_VerbNameFromID = "MS Outlook"
Case 6
ISmartTagAction_VerbNameFromID = "MS Powerpoint"
End Select
End Property
Private Sub ISmartTagAction_InvokeVerb(ByVal VerbID As Long, ByVal ApplicationName As String, ByVal Target As Object, ByVal Properties As SmartTagLib.ISmartTagProperties, ByVal Text As String, ByVal Xml As String)
Dim ie As Variant
Set ie = CreateObject("InternetExplorer.Application")
Inhalt dieses Artikels
Links zum Artikel
Test: Office XP Final Jetzt steht die fertige Version von Office XP in den Läden. Schöner und smarter soll es sein. Ob das aber ausreicht, die ...
Links zum Thema



PDF
eBook


