You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
828 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace demo
{
partial class UpdateFormMain
{
/// <summary>
/// 窗体闪烁函数
/// </summary>
/// <param name="handle"></param>
/// <param name="binvert"></param>
/// <returns></returns>
[DllImport("user32.dll", EntryPoint = "FlashWindow")]
public static extern bool FlashWindow(IntPtr handle, bool binvert);
public UpdateFormMain(Form frmWindow, Control[] ctrl)
{
this.frmMain = frmWindow;
this.ctrl = ctrl;
ResizeWindowSize();
InitUI(this.ctrl);
}
private Form frmMain;
private Control[] ctrl;
}
}