Exemplo n.º 1
0
        /// <summary>
        ///   Resumes painting the <see cref="Picture" /> control after painting is suspended by the
        ///   <see cref="BeginUpdate" /> method.
        /// </summary>
        public void EndUpdate()
        {
            if (this.InvokeRequired)
            {
                var endUpdateDelegate = new EndUpdateDelegate(this.EndUpdate);
                this.Invoke(endUpdateDelegate);
                return;
            }

            User32.SendMessage(this.Handle, User32.WMSETREDRAW, new IntPtr(1), IntPtr.Zero);
        }
Exemplo n.º 2
0
    /// <summary>
    ///   Resumes painting the <see cref="Picture" /> control after painting is suspended by the
    ///   <see cref="BeginUpdate" /> method.
    /// </summary>
    public void EndUpdate()
    {
      if (this.InvokeRequired)
      {
        var endUpdateDelegate = new EndUpdateDelegate(this.EndUpdate);
        this.Invoke(endUpdateDelegate);
        return;
      }

      User32.SendMessage(this.Handle, User32.WMSETREDRAW, new IntPtr(1), IntPtr.Zero);
    }