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

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

?? popupmenu.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 5 頁
字號:
// *****************************************************************************
// 
//  (c) Crownwood Consulting Limited 2002 
//  All rights reserved. The software and associated documentation 
//  supplied hereunder are the proprietary information of Crownwood Consulting 
//	Limited, Haxey, North Lincolnshire, England and are supplied subject to 
//	licence terms.
// 
//  Magic Version 1.7 	www.dotnetmagic.com
// *****************************************************************************

using System;
using System.IO;
using System.Drawing;
using System.Reflection;
using System.Drawing.Text;
using System.Collections;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Runtime.InteropServices;
using Crownwood.Magic.Menus;
using Crownwood.Magic.Win32;
using Crownwood.Magic.Common;
using Crownwood.Magic.Controls;
using Crownwood.Magic.Collections;

namespace Crownwood.Magic.Menus
{
    [ToolboxItem(false)]
    [DefaultProperty("MenuCommands")]
    public class PopupMenu : NativeWindow
    {
        // Enumeration of Indexes into positioning constants array
        protected enum PI
        {
            BorderTop		= 0,
            BorderLeft		= 1,
            BorderBottom	= 2, 
            BorderRight		= 3,
            ImageGapTop		= 4,
            ImageGapLeft	= 5,
            ImageGapBottom	= 6,
            ImageGapRight	= 7,
            TextGapLeft		= 8,
            TextGapRight	= 9,
            SubMenuGapLeft	= 10,
            SubMenuWidth	= 11,
            SubMenuGapRight	= 12,
            SeparatorHeight	= 13,
            SeparatorWidth	= 14,
            ShortcutGap		= 15,
            ShadowWidth		= 16,
            ShadowHeight	= 17,
            ExtraWidthGap	= 18,
            ExtraHeightGap	= 19,
            ExtraRightGap	= 20,
            ExtraReduce		= 21
        }

        // Class constants for sizing/positioning each style
        protected static readonly int[,] _position = { 
                                                        {2, 1, 0, 1, 2, 3, 3, 5, 4, 4, 2, 6, 5, 5, 1, 10, 4, 4, 2, 2, 0, 0},	// IDE
                                                        {1, 0, 1, 2, 2, 1, 3, 4, 3, 3, 2, 8, 5, 5, 5, 10, 0, 0, 2, 2, 2, 5}		// Plain
                                                     };
        // Other class constants
        protected static int _selectionDelay = 400;
        protected static int _expansionDelay = 1100;
        protected static int _imageWidth = 16;
        protected static int _imageHeight = 16;
        protected static int _shadowLength = 4;
        protected static int _shadowHalf = 2;
        protected static int _blendSteps = 6;
        protected static Bitmap _shadowCache = null;
        protected static int _shadowCacheWidth = 0;
        protected static int _shadowCacheHeight = 0;
		
        // Class fields
        protected static ImageList _menuImages = null;
        protected static bool _supportsLayered = false;
		
        // Indexes into the menu images strip
        protected enum ImageIndex
        {
            Check			= 0,
            Radio			= 1,
            SubMenu			= 2,
            CheckSelected	= 3,
            RadioSelected	= 4,
            SubMenuSelected	= 5,
            Expansion		= 6,
            ImageError		= 7
        }

        // Operation of DrawShadowHorizontal
        protected enum Shadow
        {
            Left,
            Right,
            All
        }

        // Class constants that are marked as 'readonly' are allowed computed initialization
        protected readonly int WM_DISMISS = (int)Win32.Msgs.WM_USER + 1;
        protected readonly int WM_OPERATE_SUBMENU = (int)Win32.Msgs.WM_USER + 2;

        // Instance fields
        protected Timer _timer;
        protected Font _textFont;
        protected int _popupItem;
        protected int _trackItem;
        protected int _borderGap;
        protected int _returnDir;
        protected int _extraSize;
        protected int _excludeOffset;
		protected int _animateTime;
		protected bool _animateFirst;
		protected bool _animateIn;
        protected bool _layered;
        protected bool _exitLoop;
        protected bool _mouseOver;
        protected bool _popupDown;
        protected bool _popupRight;
        protected bool _excludeTop;
        protected bool _showInfrequent;
        protected bool _rememberExpansion;
        protected bool _highlightInfrequent;
        protected Color _backColor;
        protected Color _textColor;
        protected Color _highlightTextColor;
        protected Color _highlightColor;
        protected Color _highlightColorDark;
        protected Color _highlightColorLight;
        protected Color _highlightColorLightLight;
        protected Color _controlLL;
        protected Color _controlLLight;
        protected Size _currentSize;
        protected VisualStyle _style;
        protected Point _screenPos;
        protected Point _lastMousePos;
        protected Point _currentPoint;
        protected Point _leftScreenPos;
        protected Point _aboveScreenPos;
        protected Direction _direction;
        protected PopupMenu _parentMenu;
        protected PopupMenu _childMenu;
        protected SolidBrush _controlLBrush;
        protected SolidBrush _controlEBrush;
        protected SolidBrush _controlLLBrush;
        protected Animate _animate;
        protected Animate _animateTrack;
        protected Animation _animateStyle;
        protected ArrayList _drawCommands;
        protected MenuControl _parentControl;
        protected MenuCommand _returnCommand;
        protected MenuCommandCollection _menuCommands;

        // Instance fields - events
        public event CommandHandler Selected;
        public event CommandHandler Deselected;

        static PopupMenu()
        {
            // Create a strip of images by loading an embedded bitmap resource
            _menuImages = ResourceHelper.LoadBitmapStrip(Type.GetType("Crownwood.Magic.Menus.PopupMenu"),
                                                         "Crownwood.Magic.Resources.ImagesPopupMenu.bmp",
                                                         new Size(16,16),
                                                         new Point(0,0));

            // We need to know if the OS supports layered windows
            _supportsLayered = (OSFeature.Feature.GetVersionPresent(OSFeature.LayeredWindows) != null);
        }

        public PopupMenu()
        {
            // Create collection objects
            _drawCommands = new ArrayList();
            _menuCommands = new MenuCommandCollection(); 

            // Default the properties
            _returnDir = 0;
            _extraSize = 0;
            _popupItem = -1;
            _trackItem = -1;
            _childMenu = null;
            _exitLoop = false;
            _popupDown = true;
            _mouseOver = false;
            _excludeTop = true;
            _popupRight = true;
            _parentMenu = null;
            _excludeOffset = 0;
            _parentControl = null;
            _returnCommand = null;
            _controlLBrush = null;
            _controlEBrush = null;
            _controlLLBrush = null;
            _highlightInfrequent = false;
            _showInfrequent = false;
            _style = VisualStyle.IDE;
            _rememberExpansion = true;
            _lastMousePos = new Point(-1,-1);
            _direction = Direction.Horizontal;
            _textFont = SystemInformation.MenuFont;

			// Animation details
            _animateTime = 100;
            _animate = Animate.System;
			_animateStyle = Animation.System;
			_animateFirst = true;
			_animateIn = true;

            // Create and initialise the timer object (but do not start it running!)
            _timer = new Timer();
            _timer.Interval = _selectionDelay;
            _timer.Tick += new EventHandler(OnTimerExpire);

            // Define default colors
            _textColor = SystemColors.MenuText;
            _highlightTextColor = SystemColors.HighlightText;
            DefineHighlightColors(SystemColors.Highlight);
            DefineColors(SystemColors.Control);
        }

        [Category("Appearance")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public MenuCommandCollection MenuCommands
        {
            get { return _menuCommands; }
        } 

        [Category("Appearance")]
        [DefaultValue(typeof(VisualStyle), "IDE")]
        public VisualStyle Style
        {
            get { return _style; }
            set { _style = value; }
        }

        [Category("Appearance")]
        public Font Font
        {
            get { return _textFont; }
            set { _textFont = value; }
        }

        [Category("Behaviour")]
        [DefaultValue(false)]
        public bool ShowInfrequent
        {
            get { return _showInfrequent; }
            set { _showInfrequent = value; }
        }

        [Category("Behaviour")]
        [DefaultValue(true)]
        public bool RememberExpansion
        {
            get { return _rememberExpansion; }
            set { _rememberExpansion = value; }
        }
        
        [Category("Behaviour")]
        [DefaultValue(true)]
        public bool HighlightInfrequent
        {
            get { return _highlightInfrequent; }
            set { _highlightInfrequent = value; }
        }

        [Category("Behaviour")]
        public Color BackColor
        {
            get { return _backColor; }
            set { DefineColors(value); }
        }
       
        [Category("Behaviour")]
        public Color TextColor
        {
            get { return _textColor; }
            set { _textColor = value; }
        }

        [Category("Behaviour")]
        public Color HighlightTextColor
        {
            get { return _highlightTextColor; }
            set { _highlightTextColor = value; }
        }

        [Category("Behaviour")]
        public Color HighlightColor
        {
            get { return _highlightColor; }
            set { DefineHighlightColors(value); }
        }

        [Category("Animate")]
        [DefaultValue(typeof(Animate), "System")]
        public Animate Animate
        {
            get { return _animate; }
            set { _animate = value; }
        }

        [Category("AnimateTime")]
        public int AnimateTime
        {
            get { return _animateTime; }
            set { _animateTime = value; }
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人高清在线| 不卡的av在线| 99视频一区二区| 日韩午夜三级在线| 亚洲免费观看高清| 国产精品一区二区在线播放 | 不卡一区二区在线| 在线电影一区二区三区| 中文字幕一区免费在线观看| 久久av中文字幕片| 欧美久久久一区| 亚洲丝袜精品丝袜在线| 国产成人在线观看| 欧美一区二区三区免费观看视频 | 精品国产不卡一区二区三区| 夜夜精品浪潮av一区二区三区| 成人免费毛片高清视频| 久久综合久色欧美综合狠狠| 毛片一区二区三区| 91精品国产91综合久久蜜臀| 亚洲风情在线资源站| 色悠悠久久综合| 成人免费在线播放视频| 成人免费毛片app| 国产精品网站导航| 成人黄色av网站在线| 欧美国产精品中文字幕| 国产精品一区二区男女羞羞无遮挡| 欧美一区二区三区小说| 日韩高清欧美激情| 91精品国产日韩91久久久久久| 麻豆精品精品国产自在97香蕉| 欧美视频一区在线| 午夜电影网亚洲视频| 欧美女孩性生活视频| 天堂va蜜桃一区二区三区| 欧美精品久久一区二区三区| 天堂久久久久va久久久久| 欧美一区二区久久| 久久se精品一区二区| 国产午夜精品美女毛片视频| 成人永久免费视频| 亚洲美女免费在线| 欧美巨大另类极品videosbest | 日韩精品中文字幕在线不卡尤物 | 色综合久久久久综合| 一区二区三区四区在线免费观看| 色女孩综合影院| 日韩va亚洲va欧美va久久| 精品国产免费久久| 丁香婷婷综合五月| 亚洲欧美日韩在线| 欧美日韩成人综合| 国内精品久久久久影院薰衣草| 国产午夜精品久久久久久免费视| 不卡高清视频专区| 亚洲国产成人精品视频| 精品国产亚洲一区二区三区在线观看| 黑人巨大精品欧美黑白配亚洲| 国产亚洲人成网站| 91黄色免费网站| 久久国产精品色婷婷| 亚洲图片另类小说| 欧美一级欧美三级| 丰满亚洲少妇av| 午夜a成v人精品| 国产精品欧美精品| 欧美日韩在线播放三区四区| 国产精品中文字幕欧美| 一区二区三区在线免费视频| 欧美大片日本大片免费观看| 91在线你懂得| 久久不见久久见中文字幕免费| **性色生活片久久毛片| 日韩欧美一级特黄在线播放| 99久久精品99国产精品| 久久se精品一区精品二区| 亚洲精品国产第一综合99久久| 日韩免费高清视频| 欧美性生交片4| 国产精品69久久久久水密桃| 午夜私人影院久久久久| 欧美国产成人精品| 日韩精品影音先锋| 欧美性色黄大片| 欧美福利电影网| 国产成人精品亚洲午夜麻豆| 喷水一区二区三区| 亚洲制服丝袜av| 国产精品美女久久福利网站| 欧美精品一区二区三区高清aⅴ| 欧美中文字幕一二三区视频| 成人午夜免费av| 国产乱子伦视频一区二区三区| 石原莉奈在线亚洲三区| 亚洲最大的成人av| 中文字幕一区二区三区不卡在线 | 激情图区综合网| 亚洲激情男女视频| 国产精品入口麻豆九色| 欧美成人一级视频| 91精品国产综合久久精品麻豆 | 亚洲成人精品一区二区| 国产精品久久久久久久久免费樱桃| 精品国产一区二区三区久久影院 | 精品在线一区二区| 日本欧美一区二区三区| 亚洲成精国产精品女| 综合av第一页| 亚洲色图欧美激情| 1000部国产精品成人观看| 中文欧美字幕免费| 国产精品私人影院| 国产精品久久久久影院老司| 国产色一区二区| 久久精品夜夜夜夜久久| 久久精品水蜜桃av综合天堂| 久久精品亚洲国产奇米99| 久久久久久久久97黄色工厂| 国产亚洲精品7777| 亚洲国产精品v| 国产精品久久久久一区| 国产精品日产欧美久久久久| 国产精品成人在线观看| 亚洲欧美一区二区三区孕妇| 亚洲黄色性网站| 天堂久久久久va久久久久| 久久精品久久久精品美女| 精彩视频一区二区三区| 成人一道本在线| 日本韩国欧美国产| 欧美巨大另类极品videosbest | 欧美精品久久久久久久久老牛影院| 精品视频在线免费观看| 欧美一区日韩一区| 国产午夜三级一区二区三| 国产精品久久久99| 一区二区三区精品久久久| 天天综合天天综合色| 不卡一区二区在线| 在线精品观看国产| 日韩欧美高清dvd碟片| 中文字幕第一区综合| 亚洲精品免费在线观看| 天堂一区二区在线| 国产九色sp调教91| 欧洲精品一区二区| 精品福利在线导航| 亚洲欧美日韩国产中文在线| 免费看黄色91| 波多野结衣亚洲一区| 91麻豆精品国产91| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲精品成人在线| 韩国视频一区二区| 欧美日韩综合在线免费观看| 久久久久国产精品厨房| 亚洲综合一二三区| 极品尤物av久久免费看| 在线观看亚洲a| 国产午夜精品一区二区| 图片区小说区国产精品视频| 粉嫩在线一区二区三区视频| 欧美视频精品在线观看| 欧美激情资源网| 美女爽到高潮91| 欧美日精品一区视频| 亚洲国产精品二十页| 麻豆一区二区三区| 在线观看不卡一区| 国产精品国产三级国产专播品爱网 | 视频一区视频二区中文字幕| 粉嫩aⅴ一区二区三区四区五区| 欧美疯狂做受xxxx富婆| 日韩伦理电影网| 国产夫妻精品视频| 精品久久久久久亚洲综合网| 亚洲宅男天堂在线观看无病毒| 成人av网址在线观看| 精品精品国产高清一毛片一天堂| 亚洲最新在线观看| 91视频免费看| 亚洲日本在线看| 国产综合一区二区| 日韩精品一区二区三区视频在线观看| 成人午夜视频福利| 日韩欧美在线一区二区三区| 视频一区中文字幕| 这里是久久伊人| 日韩av一级电影| 欧美人体做爰大胆视频| 亚洲综合一区在线| 色先锋久久av资源部| 亚洲欧美福利一区二区| 91色porny| 一个色在线综合| 欧美日精品一区视频| 午夜影院在线观看欧美| 欧美区视频在线观看| 天天色图综合网|