The more simple wayof how to overlap background image and standard tree output is to use a CDC::TransapretnBlt function.
For example, so:
// Combine the foreground with the background
VERIFY(imageDC.TransparentBlt(rcClient.left, rcClient.top, rcClient.Width(), rcClient.Height(),&memDC, 0,0,rcClient.Width(), rcClient.Height(),::GetSysColor( COLOR_WINDOW )));
In this way it is no necessary to use a mask dc.
Howdy, I've successfully added this code to my Tree Ctrl, and everything seems to work, except that the rest of the tree ctrl show's black, and i can't figure out why. The image comes in just fine, and i can see the tree just fine on top of everything, but where there is no BMP there is Black...