How to copy the content of a layered window to another dc?

Viewed 24

How i could make a copy of the DC of a layered window or get its HBITMAP?

I tried: GetDCEx / GetDC and:

  • BitBlt SRCCOPY|CAPTUREBLT
  • GdiAlphaBlend

In both cases the DC didn't contain a valid bitmap.

I also tried calling GetCurrentObject OBJ_BITMAP, but the HBITMAP return is all black.

The target layered window doesn't contain transparency, so i dont need to care about it. What else i could try?

0 Answers
Related