免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
C#程序?qū)崿F(xiàn)aero特效的方法
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices; namespace WindowsFormsApplication1{    public partial class Form1 : Form    {        public Form1 ( )        {            InitializeComponent();        }        #region 窗體特效        #region Aero玻璃特效        [DllImport("dwmapi.dll" , PreserveSig = false)]        static extern void DwmExtendFrameIntoClientArea ( IntPtr hwnd , ref Margins margins );        [DllImport("dwmapi.dll" , PreserveSig = false)]        static extern bool DwmIsCompositionEnabled ( );        [StructLayout(LayoutKind.Sequential)]        class Margins        {            public int Left , Right , Top , Bottom;        }        #endregion          #region 窗體移動(dòng)        [DllImport("user32.dll")]        public static extern bool ReleaseCapture ( );        [DllImport("user32.dll")]        public static extern bool SendMessage ( IntPtr hwnd , int wMsg , int wParam , int lParam );        public const int WM_SYSCOMMAND = 0x0112;        public const int SC_MOVE = 0xF010;        public const int HTCAPTION = 0x0002;        #endregion          #region 重繪窗體        protected override void OnLoad ( EventArgs e )        {            if (DwmIsCompositionEnabled())            {                Margins margins = new Margins();                margins.Right = margins.Left = margins.Top = margins.Bottom = this.Width + this.Height;                DwmExtendFrameIntoClientArea(this.Handle , ref margins);            }            base.OnLoad(e);        }        protected override void OnPaintBackground ( PaintEventArgs e )        {            base.OnPaintBackground(e);            if (DwmIsCompositionEnabled())            {                e.Graphics.Clear(Color.Black);            }        }        #endregion        #endregion     }}
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
C# WinForm實(shí)現(xiàn)Windows 7 Aero磨砂玻璃效果
C# 獲取鍵盤(pán)鉤子,屏蔽鍵盤(pán)按鍵
C#中如何調(diào)用 VC++做的 SDK
C#中DllImport用法和路徑問(wèn)題
C# 實(shí)現(xiàn)以驅(qū)動(dòng)方式(winio)模擬鍵盤(pán)鼠標(biāo)(part 1)
如何讓MessageBox.Show的在父窗口上居中顯示
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服