private IntPtr SplashWindowProcedure(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam) { if (msg != 15) { return(UnsafeNativeMethods.DefWindowProc(hWnd, msg, wParam, lParam)); } UnsafeNativeMethods.PAINTSTRUCT pAINTSTRUCT = new UnsafeNativeMethods.PAINTSTRUCT(); this.OnPaint(UnsafeNativeMethods.BeginPaint(hWnd, out pAINTSTRUCT)); UnsafeNativeMethods.EndPaint(hWnd, ref pAINTSTRUCT); return(IntPtr.Zero); }
internal static extern IntPtr BeginPaint(IntPtr hwnd, out UnsafeNativeMethods.PAINTSTRUCT lpPaint);
internal static extern bool EndPaint(IntPtr hWnd, ref UnsafeNativeMethods.PAINTSTRUCT lpPaint);