個人程式碼程式庫の設定表單效果AnimateWindow

來源:互聯網
上載者:User
using System.Runtime.InteropServices;
using System;

namespace myMethod
{

public class AnimateWindows
{

#region 使用AnimateWindow(譯為:生動的表單)製作淡入淡出效果的表單

[DllImport("user32")]


//設定的效果可疊加用“|”並列。
public static extern bool AnimateWindow(IntPtr dw_handle表單控制代碼, int dw_time反應時間, int dw_flag設定效果);

//從左至右顯示
public const Int32 AW_HOR_positive左右= 0x00000001;

//從右至左顯示
public const Int32 AW_HOR_negative右左 = 0x00000002;

//從上到下顯示
public const Int32 AW_VER_positive上下 = 0x00000004;

//從下到上顯示
public const Int32 AW_VER_negative下上 = 0x00000008;

//若使用了AW_HIDE標誌,則使視窗向內重疊,即收縮視窗;否則使視窗向外擴充,即展開視窗
public const Int32 AW_center縮擴 = 0x00000010;

//隱藏視窗,預設則顯示視窗,必須有AW_HIDE才能看到表單的淡出
public const Int32 AW_hide隱藏 = 0x00010000;

//啟用視窗。在使用了AW_HIDE標誌後不能使用這個標誌
public const Int32 AW_activate啟用 = 0x00020000;

//使用滑動類型。預設則為滾動動畫類型。當使用AW_CENTER標誌時,這個標誌就被忽略
public const Int32 AW_slide滑動 = 0x00040000;

//"透明度"從高到低
public const Int32 AW_blend透明漸顯 = 0x00080000;

#endregion
}

}

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.