I have a picture in a CPictureHolder, I need to render this picture in a memory DC then use the memory DC in a BitBlt function to draw parts of it on the screen.
I wrote some code but it is not working, what did I miss or is it not a valid idea?
void CControl::OnDraw(CDC* pcdc, const CRect& crcBounds, const CRect& crcInvalid)
Picture.Render(MemoryDC, crcBounds, crcBounds);
cdc->BitBlt(0, 0, nWidth, nHeight, &MemoryDC, 0, 0, SRCAND);