Is it possible to associate the System Image list with a Treview Control in
VFP?

I've been playing around with Shell_GetImageLists, but no luck so far.

Re: System Image List by David

David
Mon May 09 19:36:09 CDT 2005

John,

Look at the Treeview101 sample over on my website. It shows how to
coordinate a treeview with an imagelist.

--
df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro

"John Fenton" <JohnFenton@discussions.microsoft.com> wrote in message
news:0589B233-EF97-48AC-9403-DF96C92A8835@microsoft.com...
>
> Is it possible to associate the System Image list with a Treview Control
> in
> VFP?
>
> I've been playing around with Shell_GetImageLists, but no luck so far.
>
>



Re: System Image List by JohnFenton

JohnFenton
Mon May 09 20:30:04 CDT 2005


Thanks for the response... I was beginning to think I wasn't going to get
one on this.

Actually downloaded your treeview101 code last week, it does a nice job of
illustrating the options available with this control. Nice site BTW, saw
some things I want to look through later.

I am upgrading an older utility dialog of mine, an advanced directory
selector dialog that has more features (Favorites/Recently visited/Projects
etc.) than GETDIR() I already understand how to link a treeview control to
an image list control, my current control does that using folder icons. I'm
in the process of updating it to show the shell namespace instead of using
ADIR for the tree.

What I'm looking for is a way to hook the treeview to the System Image List
AKA Systems Icon Cache so I can have the correct icon for each folder. I'm
not sure if you can do this in VFP, but I know it can be done in other
languages so I didn't want to just toss it out as not possible.

Thanks

John

"David Frankenbach" wrote:

> John,
>
> Look at the Treeview101 sample over on my website. It shows how to
> coordinate a treeview with an imagelist.
>
> --
> df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro
>
> "John Fenton" <JohnFenton@discussions.microsoft.com> wrote in message
> news:0589B233-EF97-48AC-9403-DF96C92A8835@microsoft.com...
> >
> > Is it possible to associate the System Image list with a Treview Control
> > in
> > VFP?
> >
> > I've been playing around with Shell_GetImageLists, but no luck so far.
> >
> >
>
>
>

Re: System Image List by David

David
Tue May 10 10:13:44 CDT 2005

John,

Thanks for the kind words.

Do a search on IconExtract (or ExractIcon), I think there's some code in the
files section of universalthread.com that can be used to put the image out
of a DLL/EXE and pushed into the ImageList.

--
df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro

"John Fenton" <JohnFenton@discussions.microsoft.com> wrote in message
news:AE59C305-ECA7-48A3-BEC9-224F5DE6A827@microsoft.com...
>
> Thanks for the response... I was beginning to think I wasn't going to get
> one on this.
>
> Actually downloaded your treeview101 code last week, it does a nice job of
> illustrating the options available with this control. Nice site BTW, saw
> some things I want to look through later.
>
> I am upgrading an older utility dialog of mine, an advanced directory
> selector dialog that has more features (Favorites/Recently
> visited/Projects
> etc.) than GETDIR() I already understand how to link a treeview control
> to
> an image list control, my current control does that using folder icons.
> I'm
> in the process of updating it to show the shell namespace instead of using
> ADIR for the tree.
>
> What I'm looking for is a way to hook the treeview to the System Image
> List
> AKA Systems Icon Cache so I can have the correct icon for each folder.
> I'm
> not sure if you can do this in VFP, but I know it can be done in other
> languages so I didn't want to just toss it out as not possible.



Re: System Image List by JohnFenton

JohnFenton
Tue May 10 21:01:02 CDT 2005


I paid for a membership tonight and found a number of things to try. I'll
post back if I find a solution.

"David Frankenbach" wrote:

> John,
>
> Thanks for the kind words.
>
> Do a search on IconExtract (or ExractIcon), I think there's some code in the
> files section of universalthread.com that can be used to put the image out
> of a DLL/EXE and pushed into the ImageList.
>
> --
> df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro
>
> "John Fenton" <JohnFenton@discussions.microsoft.com> wrote in message
> news:AE59C305-ECA7-48A3-BEC9-224F5DE6A827@microsoft.com...
> >
> > Thanks for the response... I was beginning to think I wasn't going to get
> > one on this.
> >
> > Actually downloaded your treeview101 code last week, it does a nice job of
> > illustrating the options available with this control. Nice site BTW, saw
> > some things I want to look through later.
> >
> > I am upgrading an older utility dialog of mine, an advanced directory
> > selector dialog that has more features (Favorites/Recently
> > visited/Projects
> > etc.) than GETDIR() I already understand how to link a treeview control
> > to
> > an image list control, my current control does that using folder icons.
> > I'm
> > in the process of updating it to show the shell namespace instead of using
> > ADIR for the tree.
> >
> > What I'm looking for is a way to hook the treeview to the System Image
> > List
> > AKA Systems Icon Cache so I can have the correct icon for each folder.
> > I'm
> > not sure if you can do this in VFP, but I know it can be done in other
> > languages so I didn't want to just toss it out as not possible.
>
>
>