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

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

?? windowdetailcaption.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 4 頁
字號:
                _closeButton.ImageAttributes = _activeAttr;
            else    
                _closeButton.ImageAttributes = _inactiveAttr;

            if (_showHideButton && !_ignoreHideButton)
                _hideButton.ImageAttributes = _activeAttr;
            else
                _hideButton.ImageAttributes = _inactiveAttr;

            if (_maxButton != null)
            {
                if (_maxInterface.IsMaximizeAvailable())
                    _maxButton.ImageAttributes = _activeAttr;
                else
                    _maxButton.ImageAttributes = _inactiveAttr;

                bool maximized = _maxInterface.IsWindowMaximized(this.ParentWindow);

                if (_maxInterface.Direction == Direction.Vertical)
                {
                    if (maximized)
                        _maxButton.ImageIndexEnabled = (int)ImageIndex.EnabledVerticalMin;	
                    else
                        _maxButton.ImageIndexEnabled = (int)ImageIndex.EnabledVerticalMax;	
                }
                else
                {
                    if (maximized)
                        _maxButton.ImageIndexEnabled = (int)ImageIndex.EnabledHorizontalMin;	
                    else
                        _maxButton.ImageIndexEnabled = (int)ImageIndex.EnabledHorizontalMax;	
                }
            }
        }

        protected override void RecalculateButtons()
        {
            if (_dockLeft)
            {
                if (this.Dock != DockStyle.Left)
                {
                    RemovedFromParent(this.ParentWindow);
                    this.Dock = DockStyle.Left;
                    AddedToParent(this.ParentWindow);
                }

                int iStart = _inset;

                // Button position is fixed, regardless of our size
                _closeButton.Location = new Point(_insetButton, iStart);
                _closeButton.Anchor = AnchorStyles.Top;
                _closeButton.Show();
                iStart += _buttonHeight + _insetButton;
                
                // Button position is fixed, regardless of our size
                _hideButton.Location = new Point(_insetButton, iStart);
                _hideButton.Anchor = AnchorStyles.Top;
                _hideButton.Show();
                iStart += _buttonHeight + _insetButton;

                if (_maxButton != null)
                {
                    // Button position is fixed, regardless of our size
                    _maxButton.Location = new Point(_insetButton, iStart);
                    _maxButton.Anchor = AnchorStyles.Top;
                }
            }
            else
            {
                if (this.Dock != DockStyle.Top)
                {
                    RemovedFromParent(this.ParentWindow);
                    this.Dock = DockStyle.Top;
                    AddedToParent(this.ParentWindow);
                }

                Size client = this.ClientSize;
                int iStart = _inset;

                // Button is positioned to right hand side of bar
                _closeButton.Location = new Point(client.Width - iStart - _buttonWidth, _insetButton);
                _closeButton.Anchor = AnchorStyles.Right;
                _closeButton.Show();
                iStart += _buttonWidth + _insetButton;
                
                // Next the AutoHide button is positioned
                _hideButton.Location = new Point(client.Width - iStart - _buttonWidth, _insetButton);
                _hideButton.Anchor = AnchorStyles.Right;
                _hideButton.Show();
                iStart += _buttonWidth + _insetButton;

                if (_maxButton != null)
                {
                    // Button position is fixed, regardless of our size
                    _maxButton.Location = new Point(client.Width - iStart - _buttonWidth, _insetButton);
                    _maxButton.Anchor = AnchorStyles.Right;
                }
            }

            UpdateMaximizeImage();
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            Size ourSize = this.ClientSize;
            Point[] light = new Point[4];
            Point[] dark = new Point[4];
				
            // Depends on orientation
            if (_dockLeft)
            {
                int iBottom = ourSize.Height - _inset - 1;
                int iRight = _offset + 2;
                int iTop = _inset + _buttonOffset;

                light[3].X = light[2].X = light[0].X = _offset;
                light[2].Y = light[1].Y = light[0].Y = iTop;
                light[1].X = _offset + 1;
                light[3].Y = iBottom;
			
                dark[2].X = dark[1].X = dark[0].X = iRight;
                dark[3].Y = dark[2].Y = dark[1].Y = iBottom;
                dark[0].Y = iTop;
                dark[3].X = iRight - 1;
            }
            else
            {
                int iBottom = _offset + 2;
                int iRight = ourSize.Width - (_inset + _buttonOffset);
				
                light[3].X = light[2].X = light[0].X = _inset;
                light[1].Y = light[2].Y = light[0].Y = _offset;
                light[1].X = iRight;
                light[3].Y = _offset + 1;
			
                dark[2].X = dark[1].X = dark[0].X = iRight;
                dark[3].Y = dark[2].Y = dark[1].Y = iBottom;
                dark[0].Y = _offset;
                dark[3].X = _inset;
            }

            using (Pen lightPen = new Pen(ControlPaint.LightLight(_manager.BackColor)),
                       darkPen = new Pen(ControlPaint.Dark(_manager.BackColor)))
            {
                e.Graphics.DrawLine(lightPen, light[0], light[1]);
                e.Graphics.DrawLine(lightPen, light[2], light[3]);
                e.Graphics.DrawLine(darkPen, dark[0], dark[1]);
                e.Graphics.DrawLine(darkPen, dark[2], dark[3]);

                // Shift coordinates to draw section grab bar
                if (_dockLeft)
                {
                    for(int i=0; i<4; i++)
                    {
                        light[i].X += 4;
                        dark[i].X += 4;
                    }
                }
                else
                {
                    for(int i=0; i<4; i++)
                    {
                        light[i].Y += 4;
                        dark[i].Y += 4;
                    }
                }

                e.Graphics.DrawLine(lightPen, light[0], light[1]);
                e.Graphics.DrawLine(lightPen, light[2], light[3]);
                e.Graphics.DrawLine(darkPen, dark[0], dark[1]);
                e.Graphics.DrawLine(darkPen, dark[2], dark[3]);
            }

            base.OnPaint(e);
        }
    }

    public class WindowDetailCaptionIDE : WindowDetailCaption
    {
        protected enum ImageIndex
        {
            Close					= 0,
            EnabledVerticalMax		= 1,
            EnabledVerticalMin		= 2,
            AutoHide		        = 3, 
            AutoShow		        = 4 
        }

        // Class constants
        protected const int _yInset = 3;
        protected const int _yInsetExtra = 3;
        protected const int _imageWidth = 12;
        protected const int _imageHeight = 11;
        protected const int _buttonWidth = 14;
        protected const int _buttonHeight = 13;
        protected const int _buttonSpacer = 3;

        // Class fields
        protected static int _fixedLength;
        
        static WindowDetailCaptionIDE()
        {
            // Create a strip of images by loading an embedded bitmap resource
            _images = ResourceHelper.LoadBitmapStrip(Type.GetType("Crownwood.Magic.Docking.WindowDetailCaptionIDE"),
                                                     "Crownwood.Magic.Resources.ImagesCaptionIDE.bmp",
                                                     new Size(_imageWidth, _imageHeight),
                                                     new Point(0,0));
        }

        public WindowDetailCaptionIDE(DockingManager manager, 
                                      EventHandler closeHandler, 
                                      EventHandler restoreHandler, 
                                      EventHandler invertAutoHideHandler, 
                                      ContextHandler contextHandler)
            : base(manager, 
                   new Size(_fixedLength, _fixedLength), 
                   closeHandler, 
                   restoreHandler, 
                   invertAutoHideHandler,
                   contextHandler)
        {
            // Use specificed font in the caption 
            UpdateCaptionHeight(manager.CaptionFont);
        }

        public override void PropogateNameValue(PropogateName name, object value)
        {
            base.PropogateNameValue(name, value);
        
            switch(name)
            {
                case PropogateName.CaptionFont:
                    UpdateCaptionHeight((Font)value);    
                    break;
                case PropogateName.ActiveTextColor:
                case PropogateName.InactiveTextColor:
                    DefineButtonRemapping();
                    Invalidate();
                    break;
            }
        }
        
        public override void WindowGotFocus()
        {
            SetButtonState();
            Invalidate();
        }

        public override void WindowLostFocus()
        {
            SetButtonState();
            Invalidate();
        }
      
        public override void NotifyFullTitleText(string title)
        {
            this.Text = title;
            Invalidate();
        }

        public override void ParentStateChanged(State newState)
        { 
            // Ignore the AutoHide feature when in floating form
            _ignoreHideButton = (_parentWindow.State == State.Floating);

            this.Dock = DockStyle.Top;
            RecalculateButtons();
            Invalidate();
        }

        public override void RemovedFromParent(Window parent)
        {
            if (parent != null)
            {
                Size minSize = parent.MinimalSize;

                // Remove our height from the minimum size of the parent
                minSize.Height -= _fixedLength;
                minSize.Width -= _fixedLength;

                parent.MinimalSize = minSize;
            }
        }

        protected override void DefineButtonRemapping()
        {
            // Define use of current system colors
            ColorMap activeMap = new ColorMap();
            ColorMap inactiveMap = new ColorMap();
			
            activeMap.OldColor = Color.Black;
            activeMap.NewColor = _manager.ActiveTextColor;
            inactiveMap.OldColor = Color.Black;
            inactiveMap.NewColor = _manager.InactiveTextColor;

            // Create remap attributes for use by button
            _activeAttr.SetRemapTable(new ColorMap[]{activeMap}, ColorAdjustType.Bitmap);
            _inactiveAttr.SetRemapTable(new ColorMap[]{inactiveMap}, ColorAdjustType.Bitmap);
        }

        public override void AddedToParent(Window parent)
        {
            if (parent != null)
            {
                Size minSize = parent.MinimalSize;

                // Remove our height from the minimum size of the parent
                minSize.Height += _fixedLength;
                minSize.Width += _fixedLength;

                parent.MinimalSize = minSize;
            }
        }

        protected override void OnAddMaximizeInterface()
        {
            if (_maxButton != null)
            {
                // Set the correct size for the button
                _maxButton.Size = new Size(_buttonWidth, _buttonHeight);

                // Give the button a very thin button
                _maxButton.BorderWidth = 1;

                // Define correct color setup
                _maxButton.BackColor = this.BackColor;
                _maxButton.ImageAttributes = _inactiveAttr;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本国产一区| 从欧美一区二区三区| 欧美中文一区二区三区| 一区二区免费看| 欧美绝品在线观看成人午夜影视| 亚洲国产精品久久人人爱| 在线不卡a资源高清| 久草热8精品视频在线观看| 26uuu精品一区二区在线观看| 国产伦精品一区二区三区在线观看 | 欧美精品一区二区久久婷婷| 国产一区二区三区四区五区入口| 欧美激情中文字幕| 在线看不卡av| 国内外精品视频| 亚洲精品久久久蜜桃| 在线成人小视频| 国产不卡在线播放| 亚洲制服丝袜av| 26uuu亚洲综合色欧美 | 国产综合一区二区| 日韩理论片一区二区| 666欧美在线视频| 国产精品一区久久久久| 一区二区三区欧美激情| 制服丝袜一区二区三区| a级高清视频欧美日韩| 日韩精品免费专区| 国产精品无遮挡| 日韩精品一区二区三区四区| 91网站最新网址| 老司机一区二区| 一区二区三区精品久久久| 欧美成人免费网站| 在线观看日韩电影| 国产高清不卡一区| 舔着乳尖日韩一区| 中文字幕中文字幕一区二区| 欧美一区二区播放| 在线精品视频一区二区三四| 国产精品系列在线播放| 香蕉久久夜色精品国产使用方法| 久久久久国色av免费看影院| 91精品久久久久久久久99蜜臂| 成人听书哪个软件好| 久久精品国产亚洲5555| 亚洲一区av在线| 中文字幕欧美国产| 精品理论电影在线| 欧美日韩亚洲综合一区| 99在线视频精品| 国产成人亚洲综合a∨猫咪 | 国产成人在线影院| 日本女人一区二区三区| 一区二区三区不卡在线观看| 中文子幕无线码一区tr| 久久蜜臀精品av| 日韩欧美黄色影院| 538在线一区二区精品国产| 91免费精品国自产拍在线不卡| 精品一区二区在线视频| 日韩国产精品大片| 亚洲成人一二三| 亚洲成人精品一区| 亚洲电影在线免费观看| 亚洲蜜桃精久久久久久久| 国产精品伦理在线| 亚洲国产高清aⅴ视频| 国产亚洲欧洲997久久综合 | 亚洲一区二区三区中文字幕在线| 国产精品久久久久久久久搜平片| 欧美xxxx在线观看| 精品国产髙清在线看国产毛片| 69久久夜色精品国产69蝌蚪网| 欧美丝袜自拍制服另类| 欧美日本一区二区| 欧美高清视频一二三区 | 国产精品超碰97尤物18| 国产精品初高中害羞小美女文| 国产精品色眯眯| 综合网在线视频| 亚洲日本在线观看| 一区二区三区在线视频免费| 亚洲国产精品欧美一二99| 午夜精品福利久久久| 奇米色777欧美一区二区| 精品一区二区精品| 国产黄色精品网站| 不卡av在线免费观看| 99久久精品国产观看| 91理论电影在线观看| 欧美体内she精高潮| 91精品欧美综合在线观看最新| 日韩精品一区二区在线| 久久亚洲欧美国产精品乐播| 国产精品美女久久久久aⅴ| 亚洲色欲色欲www| 天天影视涩香欲综合网| 精品一二三四区| 成人高清免费在线播放| 欧美日韩免费不卡视频一区二区三区| 91麻豆精品91久久久久同性| 久久免费视频一区| 亚洲欧洲国产日韩| 肉色丝袜一区二区| 国产成人av电影在线观看| 色就色 综合激情| 精品少妇一区二区三区在线播放 | 日韩—二三区免费观看av| 韩国精品久久久| 91尤物视频在线观看| 在线播放日韩导航| 国产欧美视频在线观看| 亚洲午夜电影网| 国产精品亚洲午夜一区二区三区| 91黄色在线观看| 欧美精品一区二区久久久| 亚洲视频香蕉人妖| 国产一区二区三区免费播放| 91蝌蚪porny| 久久久91精品国产一区二区精品 | 18涩涩午夜精品.www| 蜜桃av一区二区三区电影| av激情成人网| 亚洲精品一区二区三区蜜桃下载| 一区二区三区.www| 成人av资源在线| 精品国产制服丝袜高跟| 亚洲一线二线三线视频| aaa国产一区| 久久综合狠狠综合久久综合88 | 亚洲欧美韩国综合色| 久久99久久99精品免视看婷婷| 在线观看视频91| 国产精品久久久久久户外露出| 久久99蜜桃精品| 884aa四虎影成人精品一区| 亚洲色图在线播放| 高清不卡在线观看| 久久五月婷婷丁香社区| 天天射综合影视| 欧洲一区在线电影| 亚洲视频你懂的| av在线一区二区| 亚洲国产精品传媒在线观看| 国产一区二区三区免费| 日韩一区二区精品在线观看| 亚洲成va人在线观看| 91国内精品野花午夜精品| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 香蕉影视欧美成人| 欧洲日韩一区二区三区| 亚洲男人的天堂在线观看| 成人少妇影院yyyy| 国产亚洲欧美日韩日本| 狠狠色狠狠色综合系列| 精品久久久网站| 激情图片小说一区| 亚洲精品在线观看网站| 久久精品国产999大香线蕉| 91麻豆精品国产91久久久久久久久 | 99热这里都是精品| 中文字幕免费观看一区| 国产精品一二三区在线| 国产午夜精品理论片a级大结局| 久久精品av麻豆的观看方式| 日韩你懂的在线播放| 精品夜夜嗨av一区二区三区| 精品国内片67194| 国产成人精品一区二区三区四区 | 亚洲国产中文字幕在线视频综合| 色噜噜狠狠色综合中国| 亚洲女女做受ⅹxx高潮| 日本韩国欧美国产| 亚洲成人综合视频| 日韩一级欧美一级| 国产精品一区二区果冻传媒| 国产日产亚洲精品系列| 91在线视频免费观看| 一区二区三区日韩欧美| 欧美人伦禁忌dvd放荡欲情| 免费高清在线视频一区·| 久久亚洲欧美国产精品乐播| 成人a免费在线看| 亚洲风情在线资源站| 日韩一区二区三区av| 国产一区二区三区久久悠悠色av| 中文字幕第一区| 在线观看视频一区二区欧美日韩| 日韩高清中文字幕一区| 久久午夜老司机| 色婷婷av一区二区三区gif| 天涯成人国产亚洲精品一区av| 欧美不卡一区二区三区四区| 成人永久aaa| 三级不卡在线观看| 欧美国产精品久久| 欧美巨大另类极品videosbest | 国产精品高潮呻吟| 欧美三级在线播放|