2 writes to oldPal
System.Windows.Forms (2)
winforms\Managed\System\WinForms\PaintEvent.cs (2)
133
oldPal
= Control.SetUpPalette(dc, false /*force*/, false /*realize*/);
171
oldPal
= IntPtr.Zero;
2 references to oldPal
System.Windows.Forms (2)
winforms\Managed\System\WinForms\PaintEvent.cs (2)
169
if (
oldPal
!= IntPtr.Zero && dc != IntPtr.Zero) {
170
SafeNativeMethods.SelectPalette(new HandleRef(this, dc), new HandleRef(this,
oldPal
), 0);