public override void PaintToOutputWindow() { IntPtr hdc = Win32.MyWin32.GetDC(_nativeHwnd); _gdiPlusViewport.PaintMe(hdc); Win32.MyWin32.ReleaseDC(_nativeHwnd, hdc); #if DEBUG //Console.WriteLine("p->w " + dbugId + " " + dbugPaintToOutputWin++); #endif }
public override void PaintToOutputWindow() { IntPtr winHandle = _windowControl.Handle; IntPtr hdc = GetDC(winHandle); _gdiPlusViewport.PaintMe(hdc); ReleaseDC(winHandle, hdc); #if DEBUG //Console.WriteLine("p->w " + dbugId + " " + dbugPaintToOutputWin++); #endif }