in reply to Re: traverse tree view and set the contents
in thread traverse tree view and set the contents

no it is quite possible to actually get the individual components of windows program through the api. For instance I can get the handle to the treeview of a windows explorer.
  • Comment on Re^2: traverse tree view and set the contents

Replies are listed 'Best First'.
Re^3: traverse tree view and set the contents
by Corion (Patriarch) on Dec 24, 2008 at 10:36 UTC

    That's true, and that's what Win32::GuiTest gives you. But it's not (easily) possible to change the contents of a treeview, because you'll run into memory allocation problems.

Re^3: traverse tree view and set the contents
by Anonymous Monk on Dec 24, 2008 at 15:41 UTC
    You might be able to use that handle to make a Win32::GUI::TreeView object like this
    use Win32::GUI; my $tree = bless( { '-type' => 0, '-name' => 'Guessing', '-handle' => $treehandle, '-accel' => 0 }, 'Win32::GUI::TreeView' )
    then maybe you can set/change data easier