tags:

views:

38

answers:

1

Is there a way of attaching a System.Drawing.Graphics class to a device context (HDC) for another window which was retrieved via GetDC API function? It is easier than using GDI+ directly.

+2  A: 

From MSDN:

Graphics.FromHdc Method

Creates a new Graphics from the specified handle to a device context.

dtb