When using the aforementioned function for storing temporarily bitmap of the window I get a black rectangle instead of actual window contents.
All drawing on the window is performed using Gdiplus functions.
Is there any other way to capture window contents as bitmap to be redrawn later on a WM_PAINT event?
I need this because I found that redrawing the window all over creates some shadows on letters being redrawn and if I use _GDIPlus_GraphicsFillRect to refill the window with
background c