Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTreeCtrl icons.

Status
Not open for further replies.

WilliamGS

Programmer
Jan 21, 2004
54
0
0
PE
Hello. When we share a folder with Explorer, it puts a "hand" on the folder icon; how can I do this?, I mean, how can I put a small icon over the normal icon in a CTreeCtrl?

I am using VC++ 6.00

Thanks in advance.
William GS.
 
>When we share a folder with Explorer, it puts a "hand" on the folder icon; how can I do this?,

It is based on the "icon overley" technique. It's a shell thingie.


>I mean, how can I put a small icon over the normal icon in a CTreeCtrl?

That's different story. You'd have to "manually" merge the two icons where you BitBlt the one over the other (creating a 3rd icon/bitmap), masking out the "transparent" parts of the small hand (or whatever) icon.

For input on to mask and deal with transparency see



/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top