Get DeviceContext of Entire Screen with Multiple Montiors
问题 I need to draw a line (with the mouse) over everything with C#. I can get a Graphics object of the desktop window by using P/Invoke: DesktopGraphics = Graphics.FromHdc(GetDC(IntPtr.Zero)); However, anything I draw using this graphics object is only showing on the left monitor, and nothing on the right monitor. It doesn't fail or anything, it just doesn't show. After I create the Graphics object, it shows the visible clip region to be 1680 x 1050 which is the resolution of my left monitor. I