public LockWindowRedraw(IWin32Window window, bool invalidate) { Control control = window as Control; if ((control == null) || control.IsHandleCreated) { this.WindowHandle = window.Handle; Windows.SendMessage(this.WindowHandle, 11, IntPtr.Zero, IntPtr.Zero); } if (invalidate) { this.InvalidateFlags = RDW.RDW_ALLCHILDREN | RDW.RDW_NOERASE | RDW.RDW_INVALIDATE; } }
public static extern bool RedrawWindow(HWND hwnd, IntPtr lprcUpdate, IntPtr hrgnUpdate, RDW flags);
private static extern bool RedrawWindow(IntPtr hWnd, IntPtr lprcUpdate, IntPtr hrgnUpdate, RDW flags);
public static extern int RedrawWindow(IntPtr hWnd, IntPtr lprcUpdate, IntPtr hrgnUpdate, RDW flags);
public static extern bool RedrawWindow(IntPtr hWnd, ref Rectangle lprcUpdate, IntPtr hrgnUpdate, RDW flags);
public unsafe static extern BOOL RedrawWindow(IntPtr hWnd, RECT *lprcUpdate, IntPtr hrgnUpdate, RDW flags);
public unsafe static BOOL RedrawWindow(HandleRef hWnd, RECT *lprcUpdate, HandleRef hrgnUpdate, RDW flags) { BOOL result = RedrawWindow(hWnd.Handle, lprcUpdate, hrgnUpdate.Handle, flags); GC.KeepAlive(hWnd.Wrapper); GC.KeepAlive(hrgnUpdate.Wrapper); return(result); }
public unsafe static BOOL RedrawWindow(IHandle hWnd, RECT *lprcUpdate = default, Gdi32.HRGN hrgnUpdate = default, RDW flags = default) { BOOL result = RedrawWindow(hWnd.Handle, lprcUpdate, hrgnUpdate, flags); GC.KeepAlive(hWnd); return(result); }
public static unsafe partial BOOL RedrawWindow(IntPtr hWnd, RECT *lprcUpdate = default, Gdi32.HRGN hrgnUpdate = default, RDW flags = default);
public unsafe static BOOL RedrawWindow(HandleRef hWnd, RECT *lprcUpdate, Gdi32.HRGN hrgnUpdate, RDW flags) => RedrawWindow(hWnd, lprcUpdate, hrgnUpdate.Handle, flags);
public static extern bool RedrawWindow(IntPtr handle, IntPtr lprcUpdate, IntPtr hrgnUpdate, RDW flags);
internal static extern bool RedrawWindow(IntPtr hwnd, IntPtr lprcUpdate, IntPtr hrgnUpdate, RDW flags);