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


In reply to Re6: (post-create image list) Win32::GUI::TreeView and bitmap masks by bbfu
in thread Win32::GUI::TreeView and bitmap masks by bbfu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.