日期:2014-05-17 浏览次数:20911 次
else if (acceptFromServer[0] == "System")
{
message_system = acceptFromServer[1];
//清除缓存区的内容
for (int i = 0; i < acceptFromServer.Length - 1; i++)
{
acceptFromServer[i] = "";
}
//开启新线程创建窗口
Thread new_window = new Thread(new ThreadStart(System_window));
new_window.Start();
new_window.IsBackground = true;
}
public void System_window()
{
Message_right_down b = new Message_right_down(message_system);
b.Show();
while (b.closeFlag)
{
Thread.Sleep(100);
}
}
public partial class Message_right_down : Form
{
[DllImport("user32")]
//[DllImport("user32.dll")]
private static extern bool AnimateWindow(IntPtr hwnd, int dateTime, int dwFlags);
//hwnd窗口句柄.dateTime:动画时长.dwFlags:动画类型组合
//下面是dwFlags的各种动画标志:
int AW_ACTIVE =