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

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

?? dxmutmisc.cs

?? VC中使用C#作為腳本引擎編程
?? CS
?? 第 1 頁 / 共 5 頁
字號:
//--------------------------------------------------------------------------------------
// File: DXMUTMisc.cs
//
// Shortcut and helper functions for using DX 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>
        public static bool IsKeyDown(System.Windows.Forms.Keys key)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频免费直播| 成人av网站免费观看| 91成人免费网站| 亚洲六月丁香色婷婷综合久久| 99久久综合狠狠综合久久| 久久久精品国产免大香伊| 豆国产96在线|亚洲| 久久色视频免费观看| 成人性生交大合| 一区二区中文字幕在线| 欧美婷婷六月丁香综合色| 性感美女极品91精品| 欧美一区二区精品在线| 高清国产一区二区| 欧美成人在线直播| 精品一区二区在线观看| 日本一区二区电影| 91视频.com| 国内精品伊人久久久久av影院| 日韩欧美一二三| 高清不卡在线观看| 一区二区三区免费看视频| 在线观看91精品国产麻豆| 久久国产精品无码网站| 国产精品美日韩| 欧美日韩国产区一| 国产一区二区三区香蕉| 最新成人av在线| 欧美绝品在线观看成人午夜影视| 日韩高清一区在线| 国产日韩一级二级三级| 欧美日韩一区二区三区在线 | 国产一区二区三区av电影| 国产亚洲成aⅴ人片在线观看| 色老汉一区二区三区| 日本不卡视频一二三区| 亚洲国产精品成人综合 | 欧美理论电影在线| 韩国精品主播一区二区在线观看 | 亚洲欧美一区二区三区极速播放| 欧美精品一卡二卡| 成人精品国产一区二区4080| 丝袜美腿亚洲综合| 国产精品视频一区二区三区不卡| 欧美日韩久久久一区| 成人app在线| 老司机精品视频在线| 一区二区三区在线播| 久久精品一区二区| 欧美一区二区福利在线| 色又黄又爽网站www久久| 精品一区二区av| 性久久久久久久| 亚洲欧美日韩久久| 亚洲综合自拍偷拍| 精品电影一区二区| 欧美日韩国产首页在线观看| 91伊人久久大香线蕉| 国产高清视频一区| 麻豆成人久久精品二区三区红| 亚洲一区二区视频| 中文字幕日韩精品一区| 久久久精品人体av艺术| 精品福利av导航| 欧美一区二区在线看| 欧美丝袜丝交足nylons| 色综合久久中文字幕| av亚洲产国偷v产偷v自拍| 国产成人免费视频精品含羞草妖精| 日本亚洲天堂网| 五月婷婷综合激情| 亚洲国产日日夜夜| 亚洲一区二区三区视频在线| 一区二区三区在线免费观看| 国产精品久久久久久福利一牛影视| 久久一留热品黄| 欧美成人一区二区三区片免费| 欧美一区二区三区免费视频| 欧美日韩一级片在线观看| 在线观看视频一区二区欧美日韩| 一本在线高清不卡dvd| 一本大道久久a久久综合| 99re亚洲国产精品| 在线免费观看日韩欧美| 日本道色综合久久| 欧美亚洲日本一区| 欧美日韩你懂的| 欧美一区二区三区色| 欧美电影免费观看高清完整版在线 | 色综合久久99| 在线亚洲高清视频| 欧美日韩一区二区三区四区五区| 欧美疯狂做受xxxx富婆| 欧美一级搡bbbb搡bbbb| 久久久久久亚洲综合影院红桃| 久久久99精品免费观看不卡| 欧美经典三级视频一区二区三区| 中文字幕一区二区三区蜜月| 一区二区三区国产精华| 首页国产丝袜综合| 精品制服美女久久| 成人性生交大片免费看中文 | 国产精品资源网| 99国内精品久久| 欧美片在线播放| 精品国产乱码久久久久久久久| 久久精品日产第一区二区三区高清版 | 97久久久精品综合88久久| 色综合久久久网| 日韩天堂在线观看| 国产精品欧美极品| 亚洲国产人成综合网站| 精品亚洲成a人| 99久久精品一区二区| 欧美狂野另类xxxxoooo| 精品国免费一区二区三区| 国产精品人成在线观看免费| 亚洲mv在线观看| 懂色av中文字幕一区二区三区| 欧美性三三影院| 久久综合九色综合97_久久久| 亚洲欧洲精品天堂一级| 久久精品久久综合| 色综合久久久网| 久久人人97超碰com| 亚洲妇熟xx妇色黄| 国产精品一区二区久激情瑜伽| 在线观看一区日韩| 久久精品亚洲精品国产欧美| 亚洲国产精品久久艾草纯爱| 高清不卡在线观看| 欧美mv和日韩mv的网站| 一区二区激情视频| 成人黄色小视频在线观看| 日韩精品最新网址| 一区二区三区不卡视频在线观看 | 一区二区在线观看视频| 国产在线看一区| 欧美视频第二页| 中文字幕综合网| 国产成人免费在线视频| 日韩免费成人网| 午夜成人免费视频| 91毛片在线观看| 中国av一区二区三区| 国产一级精品在线| 欧美成人aa大片| 日韩有码一区二区三区| 欧美性xxxxxxxx| 一区二区三区免费| 97se狠狠狠综合亚洲狠狠| 欧美国产成人在线| 国产精品一色哟哟哟| 欧美成人精品高清在线播放| 五月天亚洲精品| 精品视频在线免费观看| 一区二区三区在线观看网站| 成人ar影院免费观看视频| 国产女主播在线一区二区| 国产乱人伦精品一区二区在线观看 | 精品免费一区二区三区| 日韩精品久久久久久| 欧美色偷偷大香| 一区二区不卡在线视频 午夜欧美不卡在| 成人一级片网址| 亚洲国产精品av| 99久久亚洲一区二区三区青草| 欧美激情在线一区二区三区| 国产精品亚洲一区二区三区妖精 | 欧美三级韩国三级日本一级| 亚洲综合成人网| 在线亚洲免费视频| 亚洲第一福利一区| 3atv在线一区二区三区| 石原莉奈在线亚洲三区| 欧美一区二区三区系列电影| 奇米色777欧美一区二区| 日韩一区二区电影网| 精品一区二区三区免费视频| 久久久五月婷婷| 成人免费看黄yyy456| 亚洲男人天堂av| 欧美精三区欧美精三区| 看电影不卡的网站| 国产区在线观看成人精品| 9i看片成人免费高清| 一区二区三区高清不卡| 欧美日韩国产色站一区二区三区| 日韩av网站免费在线| 亚洲精品在线观| 91在线观看下载| 偷拍自拍另类欧美| 精品免费视频.| av一区二区三区四区| 亚洲五码中文字幕| 日韩美一区二区三区| 成人一区二区视频| 亚洲欧美区自拍先锋| 欧美一级午夜免费电影| 丁香婷婷综合激情五月色|