I like to add some annotation features on a existing window. So I get the window handler, but now I like to create a drawing layer for drawing some text and so on the top of this window.
So what's the best practice? I need a new layer because sometimes I like to clear the drawing items on this layer. Currently, I'm using this:
Graphics newGraphics = Graphics.FromHwnd(hwnd);
but I like to delete these drawed graphic objects, so the original image will be displayed.
I could save the original image part before, but maybe there is still a solution which handles this.