亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wdxmutmisc.cs

?? VC中使用C#作為腳本引擎編程
?? CS
?? 第 1 頁 / 共 5 頁
字號:
//--------------------------------------------------------------------------------------
// File: WDXMUTMisc.cs
//
// Shortcut and helper functions for using Managed DirectX for Whidbey Code
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
using System;
using System.IO;
using System.Collections;
using System.Runtime.InteropServices;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;

namespace Microsoft.Samples.DirectX.UtilityToolkit
{
    #region RefWarningDialog Form
    internal class SwitchRefDialog : System.Windows.Forms.Form
    {
        internal const string KeyLocation = @"Software\Microsoft\DirectX 9.0 SDK\ManagedSamples";
        internal const string KeyValueName = "SkipWarning";

        public SwitchRefDialog(string title)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            // Use the 'question' icon
            this.pictureBox1.Image = System.Drawing.SystemIcons.Question.ToBitmap();
            // Include text
            this.lblInfo.Text = "Switching to the Direct3D reference rasterizer, a software device that implements the entire Direct3D feature set, but runs very slowly.\r\nDo you wish to continue?";
            // UPdate title
            this.Text = title;
        }

        #region Windows Form Designer generated code
        private System.Windows.Forms.PictureBox pictureBox1;
        private System.Windows.Forms.Label lblInfo;
        private System.Windows.Forms.CheckBox chkShowAgain;
        private System.Windows.Forms.Button btnYes;
        private System.Windows.Forms.Button btnNo;
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.lblInfo = new System.Windows.Forms.Label();
            this.chkShowAgain = new System.Windows.Forms.CheckBox();
            this.btnYes = new System.Windows.Forms.Button();
            this.btnNo = new System.Windows.Forms.Button();
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.SuspendLayout();
            // 
            // pictureBox1
            // 
            this.pictureBox1.Location = new System.Drawing.Point(16, 16);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(32, 32);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.pictureBox1.TabIndex = 0;
            this.pictureBox1.TabStop = false;
            // 
            // lblInfo
            // 
            this.lblInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.lblInfo.Location = new System.Drawing.Point(64, 16);
            this.lblInfo.Name = "lblInfo";
            this.lblInfo.Size = new System.Drawing.Size(328, 48);
            this.lblInfo.TabIndex = 99;
            // 
            // chkShowAgain
            // 
            this.chkShowAgain.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.chkShowAgain.Location = new System.Drawing.Point(8, 104);
            this.chkShowAgain.Name = "chkShowAgain";
            this.chkShowAgain.Size = new System.Drawing.Size(224, 16);
            this.chkShowAgain.TabIndex = 2;
            this.chkShowAgain.Text = "&Don\'t show again";
            // 
            // btnYes
            // 
            this.btnYes.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.btnYes.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.btnYes.Location = new System.Drawing.Point(117, 72);
            this.btnYes.Name = "btnYes";
            this.btnYes.Size = new System.Drawing.Size(80, 24);
            this.btnYes.TabIndex = 0;
            this.btnYes.Text = "&Yes";
            this.btnYes.Click += new EventHandler(OnYes);
            // 
            // btnNo
            // 
            this.btnNo.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnNo.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.btnNo.Location = new System.Drawing.Point(205, 72);
            this.btnNo.Name = "btnNo";
            this.btnNo.Size = new System.Drawing.Size(80, 24);
            this.btnNo.TabIndex = 1;
            this.btnNo.Text = "&No";
            this.btnNo.Click += new EventHandler(OnNo);
            // 
            // SwitchRefDialog
            // 
            this.AcceptButton = this.btnYes;
            this.CancelButton = this.btnNo;
            this.ClientSize = new System.Drawing.Size(402, 134);
            this.Controls.Add(this.btnNo);
            this.Controls.Add(this.btnYes);
            this.Controls.Add(this.chkShowAgain);
            this.Controls.Add(this.lblInfo);
            this.Controls.Add(this.pictureBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Name = "SwitchRefDialog";
            this.Text = "SampleName";
            this.ResumeLayout(false);

        }
        /// <summary>
        /// Fired when the 'Yes' button is clicked
        /// </summary>
        private void OnYes(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
        /// <summary>
        /// Fired when the 'No' button is clicked
        /// </summary>
        private void OnNo(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }
        #endregion

        /// <summary>
        /// Dialog is being dismissed, either continue the application, or shutdown.  
        /// Save setting if required.
        /// </summary>
        protected override void OnClosed(EventArgs e)
        {
            // Is the box checked?
            if (chkShowAgain.Checked)
            {
                using (Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(KeyLocation))
                {
                    key.SetValue(KeyValueName, (int)1);
                }
            }
        }
    }
    #endregion

    #region Native Methods
    /// <summary>
    /// Will hold native methods which are interop'd
    /// </summary>
    public class NativeMethods
    {
        #region Win32 User Messages / Structures

        /// <summary>Window messages</summary>
        public enum WindowMessage : uint
        {
            // Misc messages
            Destroy = 0x0002,
            Close = 0x0010,
            Quit = 0x0012,
            Paint = 0x000F,
            SetCursor = 0x0020,
            ActivateApplication = 0x001C,
            EnterMenuLoop = 0x0211,
            ExitMenuLoop = 0x0212,
            NonClientHitTest = 0x0084,
            PowerBroadcast = 0x0218,
            SystemCommand = 0x0112,
            GetMinMax = 0x0024,

            // Keyboard messages
            KeyDown = 0x0100,
            KeyUp = 0x0101,
            Character = 0x0102,
            SystemKeyDown = 0x0104,
            SystemKeyUp = 0x0105,
            SystemCharacter = 0x0106,

            // Mouse messages
            MouseMove = 0x0200,
            LeftButtonDown = 0x0201,
            LeftButtonUp = 0x0202,
            LeftButtonDoubleClick = 0x0203,
            RightButtonDown = 0x0204,
            RightButtonUp = 0x0205,
            RightButtonDoubleClick = 0x0206,
            MiddleButtonDown = 0x0207,
            MiddleButtonUp = 0x0208,
            MiddleButtonDoubleClick = 0x0209,
            MouseWheel = 0x020a,
            XButtonDown = 0x020B,
            XButtonUp = 0x020c,
            XButtonDoubleClick = 0x020d,
            MouseFirst = LeftButtonDown, // Skip mouse move, it happens a lot and there is another message for that
            MouseLast = XButtonDoubleClick,

            // Sizing
            EnterSizeMove = 0x0231,
            ExitSizeMove = 0x0232,
            Size = 0x0005,

        }

        /// <summary>Mouse buttons</summary>
        public enum MouseButtons
        {
            Left = 0x0001,
            Right = 0x0002,
            Middle = 0x0010,
            Side1 = 0x0020,
            Side2 = 0x0040,
        }

        /// <summary>Windows Message</summary>
        [StructLayout(LayoutKind.Sequential)]
        public struct Message
        {
            public IntPtr hWnd;
            public WindowMessage msg;
            public IntPtr wParam;
            public IntPtr lParam;
            public uint time;
            public System.Drawing.Point p;
        }

        /// <summary>MinMax Info structure</summary>
        [StructLayout(LayoutKind.Sequential)]
        public struct MinMaxInformation
        {
            public System.Drawing.Point reserved;
            public System.Drawing.Point MaxSize;
            public System.Drawing.Point MaxPosition;
            public System.Drawing.Point MinTrackSize;
            public System.Drawing.Point MaxTrackSize;
        }

        /// <summary>Monitor Info structure</summary>
        [StructLayout(LayoutKind.Sequential)]
        public struct MonitorInformation
        {
            public uint Size; // Size of this structure
            public System.Drawing.Rectangle MonitorRectangle;
            public System.Drawing.Rectangle WorkRectangle;
            public uint Flags; // Possible flags
        }
        #endregion

        #region Windows API calls
        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [System.Runtime.InteropServices.DllImport("winmm.dll")]
        public static extern IntPtr timeBeginPeriod(uint period);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("kernel32")]
        public static extern bool QueryPerformanceFrequency(ref long PerformanceFrequency);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("kernel32")]
        public static extern bool QueryPerformanceCounter(ref long PerformanceCount);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern bool GetMonitorInfo(IntPtr hWnd, ref MonitorInformation info);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern IntPtr MonitorFromWindow(IntPtr hWnd, uint flags);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern short GetAsyncKeyState(uint key);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern IntPtr SetCapture(IntPtr handle);

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern bool ReleaseCapture();

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern int GetCaretBlinkTime();

        [System.Security.SuppressUnmanagedCodeSecurity] // We won't use this maliciously
        [DllImport("User32.dll", CharSet = CharSet.Auto)]
        public static extern bool PeekMessage(out Message msg, IntPtr hWnd, uint messageFilterMin, uint messageFilterMax, uint flags);
        #endregion

        #region Class Methods
        private NativeMethods() { } // No creation
        /// <summary>Returns the low word</summary>
        public static short LoWord(uint l)
        {
            return (short)(l & 0xffff);
        }
        /// <summary>Returns the high word</summary>
        public static short HiWord(uint l)
        {
            return (short)(l >> 16);
        }

        /// <summary>Makes two shorts into a long</summary>
        public static uint MakeUInt32(short l, short r)
        {
            return (uint)((l & 0xffff) | ((r & 0xffff) << 16));
        }

        /// <summary>Is this key down right now</summary>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费观看高清完整| 久久久精品国产免大香伊 | 日韩中文字幕一区二区三区| 国产精品国产三级国产专播品爱网 | 国产精品看片你懂得| 国产性做久久久久久| 久久综合九色综合欧美亚洲| 精品国精品自拍自在线| 日韩一区二区三区高清免费看看| 欧美日本一区二区三区四区| 7777精品伊人久久久大香线蕉超级流畅| 精品视频在线免费| 日韩欧美国产1| 久久蜜桃av一区精品变态类天堂| 国产欧美日韩精品a在线观看| 国产丝袜欧美中文另类| 国产精品国产三级国产普通话三级 | 激情五月婷婷综合| 岛国精品一区二区| 91久久奴性调教| 欧美一级二级在线观看| 欧美成人免费网站| 国产精品三级在线观看| 亚洲精品一二三| 乱中年女人伦av一区二区| 国产不卡视频一区| 欧洲精品中文字幕| 精品国产乱码久久久久久久久| 精品不卡在线视频| 综合激情网...| 免费在线观看一区二区三区| 国产成人免费在线视频| 91视频一区二区三区| 91精品久久久久久久久99蜜臂| 欧美精品一区二区高清在线观看| 国产精品网友自拍| 视频一区二区不卡| 不卡欧美aaaaa| 91精品国产综合久久精品app| 久久久久久亚洲综合| 亚洲精品菠萝久久久久久久| 久久电影网站中文字幕| 色琪琪一区二区三区亚洲区| 精品国产自在久精品国产| 亚洲色图一区二区三区| 精品中文字幕一区二区| 99这里只有久久精品视频| 日韩亚洲欧美一区二区三区| 亚洲乱码中文字幕| 国产成人一级电影| 欧美一级欧美三级| 亚洲高清不卡在线| 91丝袜美腿高跟国产极品老师 | 91黄色免费看| 中文字幕中文字幕一区| 精品在线观看免费| 欧美日韩激情在线| 亚洲一区免费观看| 91原创在线视频| 国产人成一区二区三区影院| 捆绑调教一区二区三区| 欧美三级电影一区| 一区二区三区在线观看欧美 | 欧美精品一二三四| 一区二区高清视频在线观看| 成人免费电影视频| 国产清纯白嫩初高生在线观看91 | 日韩av中文字幕一区二区| 一本久久综合亚洲鲁鲁五月天 | 日韩欧美国产高清| 毛片av一区二区| 日韩一区二区三区视频| 午夜精品久久久久久久久久| 欧美亚洲动漫制服丝袜| 亚洲综合一区二区| 欧美视频在线观看一区| 亚洲一区二区三区影院| 色哟哟日韩精品| 亚洲影院在线观看| 在线一区二区观看| 亚洲成人av一区二区三区| 欧美日韩精品一区二区三区四区 | 日本韩国欧美一区| 亚洲在线视频网站| 日韩免费看网站| 国产自产高清不卡| 136国产福利精品导航| 91美女片黄在线观看| 亚洲午夜视频在线观看| 4438x亚洲最大成人网| 久久99精品久久久久| 久久久精品国产免费观看同学| 成a人片国产精品| 亚洲国产视频a| 精品国产青草久久久久福利| 国产美女在线观看一区| 国产精品免费视频一区| 色美美综合视频| 麻豆视频一区二区| 国产精品第一页第二页第三页| 欧美午夜精品一区二区三区| 毛片一区二区三区| 亚洲色图第一区| 日韩一区二区三区在线| 国产成人av福利| 亚洲高清免费视频| 国产亚洲精品bt天堂精选| 91成人免费在线视频| 捆绑调教美女网站视频一区| 亚洲视频一区在线| 日韩精品专区在线影院重磅| 成人中文字幕在线| 青娱乐精品视频在线| 国产精品你懂的| 欧美本精品男人aⅴ天堂| 91丨九色丨尤物| 激情综合五月婷婷| 亚洲一本大道在线| 国产精品国产精品国产专区不蜜 | 亚洲乱码国产乱码精品精小说| 欧美一卡二卡在线| 9久草视频在线视频精品| 视频一区视频二区在线观看| 最好看的中文字幕久久| 久久综合精品国产一区二区三区| 91精品福利在线| 波多野结衣亚洲一区| 精品午夜一区二区三区在线观看| 一区二区三区四区不卡在线| 欧美韩国日本一区| 日韩精品一区二区在线| 欧美肥大bbwbbw高潮| 在线观看视频91| 成人avav在线| 国产99久久久国产精品潘金| 蜜桃av一区二区三区电影| 亚洲图片欧美综合| 亚洲精品久久7777| 亚洲天天做日日做天天谢日日欢| 久久一区二区三区国产精品| 欧美成人激情免费网| 制服丝袜成人动漫| 欧美精品三级在线观看| 欧美色国产精品| 欧美视频一区二区在线观看| 欧美在线观看视频一区二区| 91小视频免费看| 91麻豆国产香蕉久久精品| 9人人澡人人爽人人精品| 97aⅴ精品视频一二三区| thepron国产精品| 91免费精品国自产拍在线不卡| 国产精品一级在线| 国产成人在线看| av色综合久久天堂av综合| 99麻豆久久久国产精品免费优播| 国产精品18久久久久久久久久久久| 久久99热99| 国产精品18久久久久久久久| 东方aⅴ免费观看久久av| 成人免费视频免费观看| 99久久精品国产一区| 日本韩国欧美一区| 欧美二区乱c少妇| 久久美女高清视频| 亚洲日本一区二区三区| 亚洲综合丝袜美腿| 日韩精品一二区| 国产剧情一区二区| 99re这里都是精品| 欧美精品久久一区| 久久精品视频免费| 亚洲人123区| 青青草国产精品97视觉盛宴| 老色鬼精品视频在线观看播放| 国产精品香蕉一区二区三区| 成人av免费观看| 91.com在线观看| 久久久久99精品一区| 亚洲激情av在线| 久久精品国产久精国产| av亚洲精华国产精华精华 | 久久久亚洲精品石原莉奈| 中文幕一区二区三区久久蜜桃| ...av二区三区久久精品| 亚洲动漫第一页| 国产在线一区二区综合免费视频| 99久精品国产| 日韩一区二区视频| 亚洲欧美日韩精品久久久久| 久久国产日韩欧美精品| 一本一道久久a久久精品| 精品久久一区二区三区| 亚洲欧洲www| 久久精品国产第一区二区三区| 波多野结衣视频一区| 精品第一国产综合精品aⅴ| 亚洲丝袜精品丝袜在线| 国产一区二区三区四区五区美女| 色综合久久精品|