in reply to Re: Re4: (post-create image list) Win32::GUI::TreeView and bitmap masks
in thread Win32::GUI::TreeView and bitmap masks

Ok, so here's the answer: Use a '0'(zero) as the type parameter.

Gah! At one point I tried using 0, but it was before I got the simple test-case working properly, so there was some other issue that caused it not to work. Then, after the test-case was working, I went and looked it up on MSDN (though I actually used the reference for CTreeCtrl::SetImageList but it indicated the same thing: I needed to use TVSIL_NORMAL). Unfortunately, when I tried to look up the value for TVSIL_NORMAL on Google, I got some page indicating it should be 1, and I didn't think to re-try 0.

So, where are these include files you looked up the value of TVSIL_NORAML in? :)

Anyway, I appreciate all your help on this. Hopefully I can figure the rest of it out on my own. :p

bbfu
Black flowers blossom
Fearless on my breath

  • Comment on Re6: (post-create image list) Win32::GUI::TreeView and bitmap masks

Replies are listed 'Best First'.
Re: Re6: (post-create image list) Win32::GUI::TreeView and bitmap masks
by knexus (Hermit) on Sep 10, 2003 at 17:15 UTC
    Hey, I have certainly made that same mistake more often than I'd like to remember. My favorite "I can't believe I did that!" stupid programming error is changing more than one thing at a time when tracking down a problem. It's such a newbie mistake, but I still do it from time to time and I have been programming for too many years...sheeze!

    So, about the include files?

    Well, I have them because I have MS Visual Studio installed on my system. If you don't have Studio (sound like you don't) then you can download the files from some sites. I don't know much about them, like accuracy, being up to date etc., but I doubt the old stuff (like the GDI calls used in these examples) change much.

    I just found this via google search using win32 API Include Files: DOCs which "seems" to have some good stuff. In particular download this: cyg32api.zip which appears to be pretty complete at first glance... the two parm vals needed in this thread are there at least. ;-)

    BTW: I certainly don't mind helping, as I have certainly recieved my fair share of help from this site. I just offered the tips on tracking it down to help.

    Also, I see we are in the same neck of the woods. Are you working on the project for personal or business? If you don't mind my asking.

      Personal. My girlfriend wanted a program to randomly changer her wallpaper (she's big into anime, so she has a bunch), and none of the ones we could find had the right combination of features. (It's suprising how few wallpaper changer programs can automatically pick up new files added to a directory.) So, I whipped up something in Perl, and now I'm trying to add a nice UI on it so she can change the settings without editing a config file.

      The more I use Win32::GUI and Win32::GUI::Loft, while both wonderful modules, the more I realize that I probably should've went with something like wxPerl or Tk to begin with. There's just too many little problems. Sigh.

      bbfu
      Black flowers blossom
      Fearless on my breath