Jump to content
Sign in to follow this  
jercfd

Creating a SysTreeView32

Recommended Posts

jercfd

How would I create a tree view of all of the folders on a computer like the one in windows explorer.

C# example from CodeProject

Posted Image

Share this post


Link to post
Share on other sites
jercfd

i got a start but it is actually a basic explorer window. i want it like the picture above.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$oShell = ObjCreate("Shell.Explorer.2")
$Form1 = GUICreate("Form1", 633, 447, 193, 125, BitOR($WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_BORDER,$WS_CLIPSIBLINGS))
GUICtrlCreateObj( $oShell, 0, 0 , 633 , 447 )
$oShell.navigate("C:\")
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Share this post


Link to post
Share on other sites
BrettF
jercfd

Edit: never mind what i said before. I found the AutoIt3-Explorer program by Holger Kotsch.

Edited by jercfd

Share this post


Link to post
Share on other sites
BrettF
BrettF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.