PaintMe() public method

public PaintMe ( IntPtr hdc ) : void
hdc System.IntPtr
return void
示例#1
0
        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
        }
示例#2
0
        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
        }