AnimateWindow
来源:互联网 发布:淘宝宝贝长图的重要性 编辑:程序博客网 时间:2024/05/16 00:57
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace WinFormTitle
{
public partial class FormTitle : Form
{
[DllImport("user32.dll", EntryPoint = "AnimateWindow")]
private static extern bool AnimateWindow(IntPtr handle, int ms, int flags);
public FormTitle()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
AnimateWindow(this.Handle, 1000, 0x20010); // 居中逐渐显示。
//AnimateWindow(this.Handle, 1000, 0xA0000); // 淡入淡出效果。
//AnimateWindow(this.Handle, 1000, 0x60004); // 自上向下。
//AnimateWindow(this.Handle, 1000, 0x20004); // 自上向下。
}
protected override void OnFormClosing(FormClosingEventArgs e)
{
base.OnFormClosing(e);
AnimateWindow(this.Handle, 1000, 0x10010); // 居中逐渐隐藏。
//AnimateWindow(this.Handle, 1000, 0x90000); // 淡入淡出效果。
//AnimateWindow(this.Handle, 1000, 0x50008); // 自下而上。
//AnimateWindow(this.Handle, 1000, 0x10008); // 自下而上。
}
}
}
- AnimateWindow
- AnimateWindow
- ANimateWindow
- AnimateWindow
- AnimateWindow
- AnimateWindow()
- VC++ AnimateWindow
- AnimateWindow函数
- AnimateWindow函数
- AnimateWindow函数用法
- AnimateWindow()函数的使用
- AnimateWindow参数详解
- AnimateWindow的使用
- animatewindow 的使用
- AnimateWindow 窗口渐入渐出
- Win32 API 用法 AnimateWindow
- AnimateWindow实现窗口动画
- 定义AnimateWindow关闭
- DataGridView To Excel
- Struts中使用Validation框架
- 多继承练习(MI)《c++ primer plus》 p536-5
- 开车跟恋爱的关系
- 天大的鼻子都会犯的错
- AnimateWindow
- ChineseLunisolarCalendar
- 还久没有写bolg了,谴责下自己,要接着努力了。。。
- ConfigurationManager
- CssStyle
- CultureInfo
- DataGridTableStyle
- DataGridViewCellStyle
- DesktopLocation