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

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

?? windowdetailcaption.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 4 頁
字號:
            if (!IsDisposed)
            {
                // Left mouse down begins a redocking action
                if (e.Button == MouseButtons.Left)
                {
                    if (this.ParentWindow.RedockAllowed)
                    {
                        WindowContent wc = this.ParentWindow as WindowContent;

                        // Is our parent a WindowContent instance?				
                        if (wc != null)
                        {
                            // Start redocking activity for the whole WindowContent
                            _redocker = new RedockerContent(this, wc, new Point(e.X, e.Y));
                        }
                    }
                }

                this.Focus();
            }
            
            base.OnMouseDown(e);
        }

        protected override void OnMouseMove(MouseEventArgs e)
        {
            // The double click event will cause the control to be destroyed as 
            // the Contents are restored to their alternative positions, so need to
            // double check the control is not already dead
            if (!IsDisposed)
            {
                // Redocker object needs mouse movements
                if (_redocker != null)
                    _redocker.OnMouseMove(e);
            }

            base.OnMouseMove(e);
        }

        protected override void OnMouseUp(MouseEventArgs e)
        {
            // The double click event will cause the control to be destroyed as 
            // the Contents are restored to their alternative positions, so need to
            // double check the control is not already dead
            if (!IsDisposed)
            {
                // Are we currently in a redocking state?
                if (_redocker != null)
                {
                    // Let the redocker finish off
                    _redocker.OnMouseUp(e);

                    // No longer need the object
                    _redocker = null;
                }

                // Right mouse button can generate a Context event
                if (e.Button == MouseButtons.Right)
                {
					// Get screen coordinates of the mouse
					Point pt = this.PointToScreen(new Point(e.X, e.Y));
    				
					// Box to transfer as parameter
					OnContext(pt);
                }
            }
            
            base.OnMouseUp(e);
        }

        protected override void OnResize(EventArgs e)
        {
            // Any resize of control should redraw all of it
            Invalidate();
            base.OnResize(e);
        }

        protected virtual void DefineButtonRemapping() {}
        protected virtual void OnAddMaximizeInterface() {}
        protected virtual void OnRemoveMaximizeInterface() {}
        protected virtual void UpdateMaximizeImage() {}
        protected virtual void UpdateAutoHideImage() {}
        protected virtual void RecalculateButtons() {}
        
        protected virtual void CreateButtons() 
        {
            // Attach events to button
            if (_closeButton != null)
            {
                _closeButton.Click += new EventHandler(OnButtonClose);
                _closeButton.GotFocus += new EventHandler(OnButtonGotFocus);
            }

            if (_hideButton != null)
            {
                _hideButton.Click += new EventHandler(OnButtonHide);
                _hideButton.GotFocus += new EventHandler(OnButtonGotFocus);
            }
        }

        public bool PreFilterMessage(ref Message m)
        {
            // Has a key been pressed?
            if (m.Msg == (int)Win32.Msgs.WM_KEYDOWN)
            {
                // Is it the ESCAPE key?
                if ((int)m.WParam == (int)Win32.VirtualKeys.VK_ESCAPE)
                {                   
                    // Are we in redocking mode?
                    if (_redocker != null)
                    {
                        // Cancel the redocking activity
                        _redocker.QuitTrackingMode(null);

                        // No longer need the object
                        _redocker = null;
                        
                        return true;
                    }
                }
            }
            
            return false;
        }
    }

    [ToolboxItem(false)]
    public class WindowDetailCaptionPlain : WindowDetailCaption
    {
        protected enum ImageIndex
        {
            Close					= 0,
            EnabledHorizontalMax	= 1,
            EnabledHorizontalMin	= 2,
            EnabledVerticalMax		= 3,
            EnabledVerticalMin		= 4, 
            AutoHide		        = 5, 
            AutoShow		        = 6 
        }

        // Class constants
        protected const int _inset = 3;
        protected const int _offset = 5;
        protected const int _fixedLength = 14;
        protected const int _imageWidth = 10;
        protected const int _imageHeight = 10;
        protected const int _buttonWidth = 12;
        protected const int _buttonHeight = 12;
        protected const int _insetButton = 2;

        // Instance fields
        protected bool _dockLeft;
        protected int _buttonOffset;

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

        public WindowDetailCaptionPlain(DockingManager manager, 
                                        EventHandler closeHandler, 
                                        EventHandler restoreHandler, 
                                        EventHandler invertAutoHideHandler, 
                                        ContextHandler contextHandler)
            : base(manager, 
                   new Size(_fixedLength, _fixedLength), 
                   closeHandler, 
                   restoreHandler, 
                   invertAutoHideHandler, 
                   contextHandler)
        {
            // Default to thinking we are docked on a left edge
            _dockLeft = true;

            // Modify painting to prevent overwriting the button control
            _buttonOffset = 1 + (_buttonWidth + _insetButton) * 2;
        }
        
        public override void ParentStateChanged(State newState)
        {
            // Should we dock to the left or top of our container?
            switch(newState)
            {
                case State.DockTop:
                case State.DockBottom:
                    _dockLeft = true;
                    break;
                case State.Floating:
                case State.DockLeft:
                case State.DockRight:
                    _dockLeft = false;
                    break;
            }

            // Ignore the AutoHide feature when in floating form
            _ignoreHideButton = (_parentWindow.State == State.Floating);

            RecalculateButtons();
        }

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

                    if (this.Dock == DockStyle.Left)
                    {
                        // Remove our width from the minimum size of the parent
                        minSize.Width -= _fixedLength;
                    }
                    else
                    {
                        // Remove our height from the minimum size of the parent
                        minSize.Height -= _fixedLength;
                    }

                    parent.MinimalSize = minSize;
                }
            }
        }

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

                    if (this.Dock == DockStyle.Left)
                    {
                        // Add our width from the minimum size of the parent
                        minSize.Width += _fixedLength;
                    }
                    else
                    {
                        // Add our height from the minimum size of the parent
                        minSize.Height += _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.InactiveTextColor;
            inactiveMap.OldColor = Color.Black;
            inactiveMap.NewColor = Color.FromArgb(128, _manager.InactiveTextColor);

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

        protected override void OnAddMaximizeInterface()
        {
            if (_maxButton != null)
            {
                _maxButton.Size = new Size(_buttonWidth, _buttonHeight);

                // Shows border all the time and not just when mouse is over control
                _maxButton.PopupStyle = false;

                // Define the fixed remapping
                _maxButton.ImageAttributes = _inactiveAttr;
                
                // Reduce the lines drawing
                _buttonOffset += (_buttonWidth + _insetButton);
            }
        }

        protected override void OnRemoveMaximizeInterface()
        {
            // Reduce the lines drawing
            _buttonOffset -= (_buttonWidth + _insetButton);
        }

        protected override void CreateButtons()
        {
            // Define the ImageList and which ImageIndex to show initially
            _closeButton = new InertButton(_images, (int)ImageIndex.Close);
            _hideButton = new InertButton(_images, (int)ImageIndex.AutoHide);
			
            _closeButton.Size = new Size(_buttonWidth, _buttonHeight);
            _hideButton.Size = new Size(_buttonWidth, _buttonHeight);

            // Shows border all the time and not just when mouse is over control
            _closeButton.PopupStyle = false;
            _hideButton.PopupStyle = false;

            // Define the fixed remapping
            _closeButton.ImageAttributes = _activeAttr;
            _hideButton.ImageAttributes = _activeAttr;

            // Add to the display
            Controls.Add(_closeButton);
            Controls.Add(_hideButton);
            
            // Let base class perform common actions
            base.CreateButtons();
        }

        protected override void UpdateAutoHideImage()
        {
            if (_pinnedImage)
                _hideButton.ImageIndexEnabled = (int)ImageIndex.AutoShow;
            else
                _hideButton.ImageIndexEnabled = (int)ImageIndex.AutoHide;
        }
        
        protected override void UpdateMaximizeImage()
        {
            if (_showCloseButton)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图制服丝袜| 国产精品亚洲а∨天堂免在线| 美女精品自拍一二三四| 岛国一区二区三区| 欧美一级午夜免费电影| 亚洲一区在线看| 丁香婷婷综合网| 久久影视一区二区| 日韩国产精品久久久| 91丨九色丨尤物| 日本一区免费视频| 国产一区免费电影| 日韩午夜小视频| 天天做天天摸天天爽国产一区 | 欧美激情中文不卡| 久久精品国产一区二区三| 欧美性videosxxxxx| 亚洲色大成网站www久久九九| 国产精选一区二区三区| 久久伊99综合婷婷久久伊| 麻豆成人91精品二区三区| 欧美肥妇bbw| 日本视频一区二区三区| 欧美日韩一本到| 天天影视网天天综合色在线播放| 日本高清不卡aⅴ免费网站| 亚洲欧洲精品成人久久奇米网 | 日韩精品视频网| 欧美日韩国产123区| 亚洲成人午夜影院| 欧美精品第1页| 五月激情六月综合| 51精品国自产在线| 久久黄色级2电影| 精品99999| 国产乱码精品一区二区三区av | 国产日韩精品久久久| 国产乱色国产精品免费视频| 国产欧美一区二区精品性色 | 在线一区二区三区做爰视频网站| 中文字幕第一区综合| 波多野结衣中文一区| 亚洲国产精品精华液2区45| 国产成人aaa| 亚洲婷婷在线视频| 在线视频一区二区三| 天天做天天摸天天爽国产一区 | 美脚の诱脚舐め脚责91| wwww国产精品欧美| 成人高清av在线| 亚洲一区二区三区小说| 678五月天丁香亚洲综合网| 青娱乐精品视频| 久久久精品欧美丰满| 99国产精品99久久久久久| 亚洲午夜精品在线| 欧美高清www午色夜在线视频| 麻豆国产欧美日韩综合精品二区| 久久影院午夜论| 91色porny蝌蚪| 日韩精品五月天| 亚洲国产高清在线| 欧美日韩免费观看一区三区| 久久99热国产| 国产精品免费视频网站| 欧美日韩一区二区三区免费看| 麻豆91精品91久久久的内涵| 中文天堂在线一区| 在线成人午夜影院| 成人精品免费视频| 美洲天堂一区二卡三卡四卡视频| 国产欧美一区二区三区鸳鸯浴 | 性做久久久久久| 国产精品你懂的在线欣赏| 欧美疯狂做受xxxx富婆| 成人午夜碰碰视频| 免费成人结看片| 亚洲久草在线视频| 久久久另类综合| 欧美日本国产视频| 色综合久久88色综合天天6| 久久疯狂做爰流白浆xx| 亚洲午夜三级在线| 国产精品久久久久影院亚瑟| 精品国产sm最大网站| 欧美少妇一区二区| 不卡的电影网站| 国产精品白丝jk白祙喷水网站 | 亚洲女子a中天字幕| 久久精品人人做人人综合 | 在线观看亚洲一区| 成人深夜在线观看| 国产麻豆视频精品| 美日韩黄色大片| 视频一区视频二区中文| 一区二区三区四区在线免费观看| 337p日本欧洲亚洲大胆精品 | 精品视频一区 二区 三区| 99麻豆久久久国产精品免费 | 欧美国产精品劲爆| 欧美精品一区二区久久婷婷| 91麻豆精品国产91久久久久久| 在线免费观看一区| 色哟哟国产精品| 一本色道久久综合亚洲精品按摩| 成人精品国产一区二区4080| 国产精品一级片| 精一区二区三区| 久久不见久久见免费视频7| 日本成人在线不卡视频| 婷婷激情综合网| 日韩高清在线一区| 麻豆91精品91久久久的内涵| 日韩高清中文字幕一区| 青娱乐精品在线视频| 久久精品国产秦先生| 麻豆精品久久久| 国产一区二区三区四| 风间由美一区二区av101| 国产精品影视天天线| 成人综合日日夜夜| 播五月开心婷婷综合| 一本一道久久a久久精品| 欧美日韩在线三级| 3d成人h动漫网站入口| 日韩欧美在线不卡| 26uuu久久天堂性欧美| 国产丝袜美腿一区二区三区| 国产精品传媒在线| 一区二区国产盗摄色噜噜| 亚洲午夜一区二区| 久久成人免费网站| 成人久久久精品乱码一区二区三区| 99免费精品在线观看| 欧美三级乱人伦电影| 欧美成人bangbros| 日本一区二区免费在线观看视频 | 国产亚洲婷婷免费| 1区2区3区国产精品| 亚洲成人av免费| 九色porny丨国产精品| 99精品在线免费| 91精品福利在线一区二区三区| 欧美大片日本大片免费观看| 国产欧美日韩另类一区| 亚洲午夜日本在线观看| 国内久久精品视频| 欧洲精品视频在线观看| 精品成人一区二区| 亚洲精品中文字幕乱码三区| 日韩精品免费专区| 成人国产精品免费网站| 欧美日韩国产免费一区二区 | 欧美人与z0zoxxxx视频| 国产日产欧美一区二区视频| 夜夜亚洲天天久久| 国产伦理精品不卡| 欧美日韩国产免费| 18欧美乱大交hd1984| 美女脱光内衣内裤视频久久影院| www.日韩在线| 精品国产伦一区二区三区观看体验| 亚洲免费成人av| 懂色av中文字幕一区二区三区| 欧美日韩一区 二区 三区 久久精品| 国产三级精品视频| 蜜桃91丨九色丨蝌蚪91桃色| 色综合欧美在线| 国产女人水真多18毛片18精品视频| 亚洲国产精品一区二区久久| 国产成人午夜99999| 91精品国产福利在线观看 | 日本中文一区二区三区| 99久久国产综合精品色伊| 精品国产91久久久久久久妲己 | 欧美精品久久99| 亚洲色图另类专区| 成人精品一区二区三区中文字幕| 欧美电影免费提供在线观看| 亚洲.国产.中文慕字在线| 91免费国产在线观看| 国产亚洲一二三区| 国产精品影视网| 久久久久久久性| 国产经典欧美精品| 欧美精品一区二区在线播放| 日本欧美肥老太交大片| 欧美日韩国产在线观看| 亚洲成年人影院| 欧美色电影在线| 亚洲国产精品久久不卡毛片 | 国产精品一区二区男女羞羞无遮挡 | 亚洲蜜臀av乱码久久精品| 国产福利精品导航| 久久久亚洲精品一区二区三区| 免费成人你懂的| 欧美成人高清电影在线| 另类综合日韩欧美亚洲| 欧美变态tickling挠脚心| 久久精品二区亚洲w码|