Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activating Windows Explorer in a VFP container...
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00648912
Message ID:
00649243
Views:
19
Hi Vlad!

Thank you on two counts!! First of all, I had exactly the same question as Will's about Windows Explorer. But especially, thanks for opening my eyes to the fact that the VFP 7 Debugger is capable of penetrating the mysteries of the Document object in ActiveX controls. Holy smokes, I didn't realize this!

I've heard about VFP 7's Intellisense and its Object Browser, but I was not aware of this major improvement in the VFP Debugger. That is by far the most compelling reason I have heard for upgrading to VFP7 without delay. If Ken Levy is paying attention, I hope he will make note of the need to make much more prominent mention of this advance in VFP7. I can't believe I didn't hear about it sooner. You deserve a commission for making this sale!

Mike

>Hi!
>
>Well, all that Windows Explorer uses is just a pure ListView ActiveX control, that contains these options to view as list, icons, detailed list etc. Though the content needed (like Control Panel) you will require to populate manually when you will use just pure List View ActiveX (though I do not know for sure).
>
>I recommend to run VFP7 and browse in debugger what is beyond the loForm.oWebControl.Document property. This property represent an access to the deep internals of the object displayed currently in the WEB Browser control or IE application object. When it is a Word document, for example, it gves access to the Word application (as far as I know). For HTML page it gives access to the entre DOM for that HTML page. Just look if you can reach ListView ActiveX control this way and manipulate it.
>
>>Is this possible with VFP? I've seen third-party applications that do it...
>>
>>I'd like the functionality provided by the following but being able to contain the window inside a VFP container:
>>
>>oShell = CREATEOBJECT("Shell.Application")
>>oShell.open(17) && ssfDRIVES (My Computer)
>>
>>
>>I get various limited functionality with a web control on a form.
>>
>>The constant limitations with the ShellSpecialFolderConstants I’ve tried are:
>>1)Ability to set the view display option (all open as “Large Icons” view)
>>2)Being able to “drilldown” on items without opening an Explorer Window.
>>
>>The web control DOES NOT allow opening items and DOES NOT display the right click menu to change view display option for the following:
>>
>>loForm.oWebControl.Navigate2(4)  && ssfPRINTERS (installed printers)
>>loForm.oWebControl.Navigate2(17) && ssfDRIVES (My Computer)
>>loForm.oWebControl.Navigate2(18) && ssfNETWORK (Network Neighborhood)
>>
>>
>>The web control DOES allow opening of items and DOES display the right click menu to change the view display option for the following:
>>
>>loForm.oWebControl.Navigate2(0) && ssfDESKTOP (Windows Desktop)
>>loForm.oWebControl.Navigate2(16) && ssfDESKTOPDIRECTORY (User Desktop)
>>loForm.oWebControl.Navigate2(19) && ssfNETHOOD (User NetHood)
>>loForm.oWebControl.Navigate2(8) && ssfRECENT
>>loForm.oWebControl.Navigate2(26) && ssfAPPDATA
>>loForm.oWebControl.Navigate2(11) && ssfSTARTMENU (User Start Menu)
>>loForm.oWebControl.Navigate2(22) && ssfCOMMONSTARTMENU (All Users Start Menu)
>>
>>
>>The following allows me to change the view display option AND let’s me “drilldown” within the web control. However the “drilled down” directory cannot change the view display option OR open items.
>>
>>loForm.oWebControl.Navigate2(34) && ssfHISTORY (Internet history items)
>>
Montage

"Free at last..."
Previous
Reply
Map
View

Click here to load this message in the networking platform