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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dxmutmisc.cs

?? VC中使用C#作為腳本引擎編程
?? CS
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
//--------------------------------------------------------------------------------------
// 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)

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
东方欧美亚洲色图在线| 国内精品国产成人国产三级粉色 | 精品国产一区二区三区av性色| 国内一区二区视频| 亚洲最大成人综合| 久久精品亚洲精品国产欧美kt∨| 欧美探花视频资源| 成人精品视频一区| 极品美女销魂一区二区三区免费| 亚洲一区二区欧美| 亚洲欧洲性图库| 国产午夜亚洲精品羞羞网站| 91麻豆精品国产91久久久| 91香蕉视频mp4| 丰满岳乱妇一区二区三区 | 国产成人99久久亚洲综合精品| 亚州成人在线电影| 亚洲私人黄色宅男| 国产日韩精品一区| 精品av久久707| 欧美高清hd18日本| 在线观看欧美精品| 色哟哟国产精品| av爱爱亚洲一区| 国产69精品一区二区亚洲孕妇| 激情成人综合网| 久久国产麻豆精品| 麻豆精品视频在线| 麻豆精品国产91久久久久久| 婷婷中文字幕一区三区| 亚洲一二三专区| 亚洲一区日韩精品中文字幕| 亚洲免费毛片网站| 亚洲美女屁股眼交| 一区二区在线免费观看| 亚洲欧美国产三级| 亚洲欧美电影一区二区| 亚洲视频一二三区| 亚洲毛片av在线| 一区二区不卡在线视频 午夜欧美不卡在| 国产精品美女久久久久aⅴ| 国产人久久人人人人爽| 国产日韩欧美a| 亚洲国产激情av| 国产精品久久久爽爽爽麻豆色哟哟| 国产人成亚洲第一网站在线播放| 久久综合九色综合97婷婷女人 | 国产高清成人在线| 国产精品一二三区在线| 国产精品18久久久久久久久| 国产成人三级在线观看| 成人精品鲁一区一区二区| www.亚洲色图.com| 色综合天天综合色综合av| 日本道色综合久久| 欧美久久久久久蜜桃| 欧美一级片在线| 久久美女艺术照精彩视频福利播放| 久久久久国产成人精品亚洲午夜| 欧美国产1区2区| 亚洲女人的天堂| 婷婷一区二区三区| 国产一区二区美女诱惑| 99久久伊人网影院| 在线日韩一区二区| 日韩欧美不卡一区| 欧美国产日产图区| 一区二区三区.www| 蜜桃久久av一区| 国产精品自产自拍| 色婷婷狠狠综合| 91精品国产麻豆国产自产在线| 久久综合国产精品| 樱桃国产成人精品视频| 日韩成人精品在线观看| 国产91精品免费| 欧美日韩一区中文字幕| 精品剧情v国产在线观看在线| 亚洲国产精品成人综合| 午夜视频在线观看一区二区三区| 精品一区二区三区免费毛片爱| 成人免费av在线| 欧美人与z0zoxxxx视频| 国产日韩精品一区二区三区| 亚洲电影在线播放| 国产精品自拍一区| 欧美亚洲丝袜传媒另类| 26uuuu精品一区二区| 亚洲一区二区精品久久av| 国产精品99久久久久久宅男| 欧美日韩国产a| 国产精品久久久久久久岛一牛影视| 午夜精品福利一区二区三区av| 国产精品一区二区在线播放| 欧美日韩精品一二三区| 中文字幕第一区第二区| 肉色丝袜一区二区| 97se亚洲国产综合自在线观| 日韩网站在线看片你懂的| 成人免费小视频| 国产毛片一区二区| 在线成人av网站| 亚洲欧美经典视频| 成人深夜视频在线观看| 日韩欧美一区在线| 亚洲美女淫视频| 成人av网在线| 久久久精品影视| 久久精品国产免费看久久精品| 在线观看日韩电影| 亚洲精品五月天| 不卡一二三区首页| 久久―日本道色综合久久| 日韩电影在线免费看| 欧洲av在线精品| 日韩一区中文字幕| 懂色av一区二区在线播放| 久久影视一区二区| 久久精品99国产国产精| 911精品国产一区二区在线| 亚洲丝袜美腿综合| 99re热这里只有精品视频| 国产网站一区二区| 韩国精品在线观看| 精品久久国产97色综合| 美女视频黄 久久| 91精品国产91久久综合桃花 | 亚洲va欧美va天堂v国产综合| 99天天综合性| 国产精品成人网| www.欧美日韩| 国产精品久久久久久久久久免费看| 国产aⅴ综合色| 国产无人区一区二区三区| 国产一区二区美女诱惑| 久久精品男人的天堂| 国产激情精品久久久第一区二区| 26uuu久久综合| 国产福利91精品一区| 国产亚洲欧洲一区高清在线观看| 国产一区二区三区在线观看免费 | 免费欧美日韩国产三级电影| 欧美日本精品一区二区三区| 香蕉久久夜色精品国产使用方法 | 精品欧美乱码久久久久久 | 欧美亚洲动漫精品| 亚洲一卡二卡三卡四卡五卡| 欧美日韩国产乱码电影| 蜜桃av一区二区| 久久综合给合久久狠狠狠97色69| 国产一区视频在线看| 欧美极品少妇xxxxⅹ高跟鞋| 成人av综合一区| 一区二区三区在线视频免费| 欧美精品久久天天躁| 日韩高清国产一区在线| 日韩美女一区二区三区四区| 粉嫩13p一区二区三区| 日韩一区日韩二区| 欧美疯狂性受xxxxx喷水图片| 久久99精品久久久久| 国产日本欧美一区二区| 91福利国产成人精品照片| 日韩电影一区二区三区| 久久综合九色欧美综合狠狠 | 欧美日本免费一区二区三区| 捆绑调教一区二区三区| 欧美国产乱子伦| 欧洲精品在线观看| 韩日精品视频一区| 国产精品久久福利| 欧美日韩中文精品| 国内外成人在线| 一区二区三区日韩精品| 91精品在线观看入口| 国产高清不卡二三区| 亚洲成人一区二区| 久久亚洲影视婷婷| 欧美在线视频全部完| 国内精品视频一区二区三区八戒| 亚洲人成精品久久久久| 欧美一卡二卡三卡| 99久久99久久精品国产片果冻| 三级久久三级久久| 国产精品久久久久久久久久久免费看| 欧美蜜桃一区二区三区| 国产成人av一区二区三区在线| 亚洲综合丝袜美腿| 久久久久成人黄色影片| 欧美日高清视频| 不卡的av电影| 久久国产视频网| 亚洲国产成人va在线观看天堂| 久久久噜噜噜久久中文字幕色伊伊 | 国产精品福利影院| 日韩精品一区二区三区视频| 一本大道久久精品懂色aⅴ| 久久精品国产精品青草| 亚洲午夜激情网站| 国产精品久久久久一区|