This comes close to just whining ... but maybe somebody knows a good
general-purpose solution to this.
At the moment I am trying to figure out a way to blit a bitmap into a
window, setting pixels in the bitmap to transparent. That is, the
bitmap has pixels that are definitely background, and I want the
window background to show through the bitmap background pixels.
I found this example:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarmfc/html/msdn_mfcclip...
which is perfect. What the author is doing is more general than what
I want to do so his approach is more complicated, but I can simplify
it down for what I need.
The problem though is that his example uses HDC and HBITMAP throughout
... but in my app, created using MFC and the visual builder,
everything is in CDC and CBitmap objects.
Theoretically I should be able to do the same things ... but there are
a lot of basic differences ... it isn't just a question of converting
one class of objects to a later extensions of those classes, the whole
approach is different. I've done less work converting perl to c ...
A line like this