| |
|
|
Uwe ''Pascal'' Niemeier | Hi people!
we're Schonmal thereby are: CompileMarkSeparationwindow 600,400
$H Windows.ph
$H ocx3a.ph
$I ocx3a.inc
ocxInit()
var File$="C:Test.html"--Irgendeine existierende Datei
var Shell&=ocxCreate("Shell.Application")-------Shell-Objekt
var Folder&=ocxMethod(Shell&,"NameSpace",$11)---Folder-Objekt ($11 = ssfDRIVES)
var File&=ocxMethod(Folder&,"ParseName",File$)--FolderItem-Objekt
var VerbCol&=ocxMethod(File&,"Verbs")-----------VerbCollection-Objekt
var Count%=ocxGet(VerbCol&,"Count")-------------Anzahl Verbs in Collection
declare Verb&
whileloop 0,Count%
Verb&=ocxMethod(VerbCol&,"Item",&loop)-------Verb-Objekt (Verb = Menü-Kommando)
print &loop,":",ocxGet(Verb&,"Name")
ocxRelease(Verb&)
endwhile
--Aufruf eines Verbs erfolgt über Index in der VerbCollection:
var Index%=0--Hier: 1. Kommando (meist "Öffnen")
Verb&=ocxMethod(VerbCol&,"Item",Index%)--Verb-Objekt
ocxMethod(Verb&,"DoIt")------------------Verb ausführen
ocxRelease(Verb&)
ocxRelease(VerbCol&,File&,Folder&,Shell&)
ocxDeInit()
waitinput
CompileMarkSeparationwindow 600,400
$H windows.ph
$H ocx3a.ph
$I ocx3a.inc
ocxInit()
usermessages 16
var File$="C:Test.html"--Irgendeine existing File
declare Control&
var Object$="WebViewFolderIcon.WebViewFolderIcon"
var Object&=ocxCreate(Object$,%hwnd,10,30,36,36,$50800000,addr(Control&))
ocxPut(Object&,"Path",File$)
print "Mit right the Icon clicking!"
while 1
waitinput
case %umessage=16:break
endwhile
ocxRelease(Object&)
destroywindow(Control&)
ocxDeInit()
naturally without Gewähr for Irgendwas! with Problemen Please feedback!
SeeYou Pascal |
|
|
| |
|
|
|
Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 12/19/09 ▲ |
|
|
|
|
| Joar!
@Roland: building You Uwes OCX in XProfan 12 one? |
|
|
| |
|
|
|
Jörg Sellmeyer |
var File$="C:Test.html"--Irgendeine existing File
It can incidentally too one Ordner or drive his. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 12/19/09 ▲ |
|
|
|