English
Source / code snippets

File Ermittlungnutzung Kontextmenüs Ocx

 

Uwe
''Pascal''
Niemeier
Hi people!

we're Schonmal thereby are:
CompileMarkSeparation
window 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

CompileMarkSeparation
window 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
 
12/19/09  
 




Jörg
Sellmeyer
Very calm!
 
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?
 
12/19/09  
 




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  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.212 Views

Untitledvor 0 min.
Sven Bader08/18/21
Frank Vorholzer04/14/11
Julian Schmidt03/09/11

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie