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

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

?? windowdetailcaption.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):

                // Force the ImageAttribute for the button to be set
                SetButtonState();
            }
        }

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

        protected override void UpdateMaximizeImage()
        {
            if ((_maxButton != null) && (_maxInterface != null))
            {
                bool enabled = _maxInterface.IsMaximizeAvailable();

                if (!enabled)
                {
                    if (_maxButton.Visible)
                        _maxButton.Hide();
                }
                else
                {
                    bool maximized = _maxInterface.IsWindowMaximized(this.ParentWindow);

                    if (!_maxButton.Visible)
                        _maxButton.Show();

                    if (maximized)
                        _maxButton.ImageIndexEnabled = (int)ImageIndex.EnabledVerticalMin;	
                    else
                        _maxButton.ImageIndexEnabled = (int)ImageIndex.EnabledVerticalMax;	
                }
            }
        }

        protected void SetButtonState()
        {
            if (this.ParentWindow != null)
            {
                if (this.ParentWindow.ContainsFocus)
                {
                    if (_closeButton.BackColor != _manager.ActiveColor)
                    {
                        _closeButton.BackColor = _manager.ActiveColor;
                        _closeButton.ImageAttributes = _activeAttr;
                        _closeButton.Invalidate();
                    }

                    if (_hideButton != null)
                    {
                        if (_hideButton.BackColor != _manager.ActiveColor)
                        {
                            _hideButton.BackColor = _manager.ActiveColor;
                            _hideButton.ImageAttributes = _activeAttr;
                            _hideButton.Invalidate();
                        }
                    }

                    if (_maxButton != null)
                    {
                        if (_maxButton.BackColor != _manager.ActiveColor)
                        {
                            _maxButton.BackColor = _manager.ActiveColor;
                            _maxButton.ImageAttributes = _activeAttr;
                            _maxButton.Invalidate();
                        }
                    }
                }
                else
                {
                    if (_closeButton.BackColor != this.BackColor)
                    {
                        _closeButton.BackColor = this.BackColor;
                        _closeButton.ImageAttributes = _inactiveAttr;
                        _closeButton.Invalidate();
                    }

                    if (_hideButton != null)
                    {
                        if (_hideButton.BackColor != this.BackColor)
                        {
                            _hideButton.BackColor = this.BackColor;
                            _hideButton.ImageAttributes = _inactiveAttr;
                            _hideButton.Invalidate();
                        }
                    }

                    if (_maxButton != null)
                    {
                        if (_maxButton.BackColor != this.BackColor)
                        {
                            _maxButton.BackColor = this.BackColor;
                            _maxButton.ImageAttributes = _inactiveAttr;
                            _maxButton.Invalidate();
                        }
                    }
                }
            }
        }

        protected override void RecalculateButtons()
        {
            int buttonX = this.Width - _buttonWidth - _buttonSpacer;
            int buttonY = (_fixedLength - _yInset * 2 - _buttonHeight) / 2 + _yInset;
        
            if (_showCloseButton)
            {
                // Button position is fixed, regardless of our size
                _closeButton.Location = new Point(buttonX, buttonY);

                _closeButton.Size = new Size(_buttonWidth, _buttonHeight);
    		
                // Give the button a very thin button
                _closeButton.BorderWidth = 1;

                // Let the location of the control be updated for us
                _closeButton.Anchor = AnchorStyles.Right;

                // Just in case currently hidden
                _closeButton.Show();
                
                // Define start of next button
                buttonX -= _buttonWidth;
            }
            else
                _closeButton.Hide();
                        
            if (_showHideButton && !_ignoreHideButton)
            {
                // Button position is fixed, regardless of our size
                _hideButton.Location = new Point(buttonX, buttonY);

                _hideButton.Size = new Size(_buttonWidth, _buttonHeight);
			
                // Give the button a very thin button
                _hideButton.BorderWidth = 1;

                // Let the location of the control be updated for us
                _hideButton.Anchor = AnchorStyles.Right;

                // Just in case currently hidden
                _hideButton.Show();

                // Define start of next button
                buttonX -= _buttonWidth;
                
                UpdateAutoHideImage();
            }
            else
                _hideButton.Hide();
            
            if (_maxButton != null)
            {
                // Button position is fixed, regardless of our size
                _maxButton.Location = new Point(buttonX, buttonY);

                _maxButton.Size = new Size(_buttonWidth, _buttonHeight);
			
                // Give the button a very thin button
                _maxButton.BorderWidth = 1;

                // Let the location of the control be updated for us
                _maxButton.Anchor = AnchorStyles.Right;

                // Define start of next button
                buttonX -= _buttonWidth;

                UpdateMaximizeImage();
            }
        }

        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);

            // Let the location of the control be updated for us
            _closeButton.Anchor = AnchorStyles.Right;
            _hideButton.Anchor = AnchorStyles.Right;

            // Define the button position relative to the size set in the constructor
            _closeButton.Location = new Point(_fixedLength - _buttonWidth - _buttonSpacer, 
                                              (_fixedLength - _yInset * 2 - _buttonHeight) / 2 + _yInset);
            
            _hideButton.Location = new Point(_fixedLength - (_buttonWidth - _buttonSpacer) * 2, 
                                             (_fixedLength - _yInset * 2 - _buttonHeight) / 2 + _yInset);

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

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

            // Add to the display
            Controls.Add(_closeButton);
            Controls.Add(_hideButton);

            // Let base class perform common actions
            base.CreateButtons();
        }

		protected void UpdateCaptionHeight(Font captionFont)
		{
            // Dynamically calculate the required height of the caption area
            _fixedLength = (int)captionFont.GetHeight() + (_yInset + _yInsetExtra) * 2;
    
            int minHeight = _buttonHeight + _yInset * 4 + 1;

            // Maintain a minimum height to allow correct showing of buttons
            if (_fixedLength < minHeight)
                _fixedLength = minHeight;

			this.Size = new Size(_fixedLength, _fixedLength);
			
			RecalculateButtons();

			Invalidate();
		}

        protected override void OnPaintBackground(PaintEventArgs e)
        {
            // Overriden to prevent background being painted
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            bool focused = false;

            if (this.ParentWindow != null)
                focused = this.ParentWindow.ContainsFocus;

            // Sometimes the min/max button is created and then an attempt is made to 
            // hide the button. But for some reason it does not always manage to hide 
            // the button. So forced to check here everytime to ensure its hidden.
            UpdateMaximizeImage();

            SetButtonState();
            
            Size ourSize = this.ClientSize;

            int xEnd = ourSize.Width;
            int yEnd = ourSize.Height - _yInset * 2;

            Rectangle rectCaption = new Rectangle(0, _yInset, xEnd, yEnd - _yInset + 1);

            using(SolidBrush backBrush = new SolidBrush(this.BackColor),
                             activeBrush = new SolidBrush(_manager.ActiveColor),
                             activeTextBrush = new SolidBrush(_manager.ActiveTextColor),
                             inactiveBrush = new SolidBrush(_manager.InactiveTextColor))
            {
                // Is this control Active?
                if (focused)
                {
                    // Fill the entire background area
                    e.Graphics.FillRectangle(backBrush, e.ClipRectangle);
    	
                    // Use a solid filled background for text
                    e.Graphics.FillRectangle(activeBrush, rectCaption);
    			
                    // Start drawing text a little from the left
                    rectCaption.X += _buttonSpacer;
                    rectCaption.Y += 1;
                    rectCaption.Height -= 2;

                    // Reduce the width to account for close button
                    rectCaption.Width -= _closeButton.Width + _buttonSpacer;

                    // Reduce width to account for the optional maximize button
                    if ((_maxButton != null) && (_maxButton.Visible))
                        rectCaption.Width -= _closeButton.Width;
    				
                    e.Graphics.DrawString(this.Text, _manager.CaptionFont, activeTextBrush, rectCaption);
                }
                else
                {
                    // Fill the entire background area
                    e.Graphics.FillRectangle(backBrush, e.ClipRectangle);
    	            
                    // Inactive and so use a rounded rectangle
                    using (Pen dark = new Pen(ControlPaint.LightLight(_manager.InactiveTextColor)))
                    {
                        e.Graphics.DrawLine(dark, 1, _yInset, xEnd - 2, _yInset);
                        e.Graphics.DrawLine(dark, 1, yEnd, xEnd - 2, yEnd);
                        e.Graphics.DrawLine(dark, 0, _yInset + 1, 0, yEnd - 1);
                        e.Graphics.DrawLine(dark, xEnd - 1, _yInset + 1, xEnd - 1, yEnd - 1);

                        // Start drawing text a little from the left
                        rectCaption.X += _buttonSpacer;
                        rectCaption.Y += 1;
                        rectCaption.Height -= 2;

                        // Reduce the width to account for close button
                        rectCaption.Width -= _closeButton.Width + _buttonSpacer;

                        // Reduce width to account for the optional maximize button
                        if ((_maxButton != null) && (_maxButton.Visible))
                            rectCaption.Width -= _maxButton.Width;

                        e.Graphics.DrawString(this.Text, _manager.CaptionFont, inactiveBrush, rectCaption);
                    }
                }	
            }
            
            // Let delegates fire through base
            base.OnPaint(e);

            // Always get the button to repaint as we have painted over their area
            _closeButton.Refresh();
        }				
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品人人做人人爽人人添| 国产精品一区2区| 国产婷婷一区二区| 久久综合久久鬼色中文字| 日韩一区和二区| 91麻豆精品国产| 制服丝袜一区二区三区| 欧洲激情一区二区| 91美女视频网站| 色琪琪一区二区三区亚洲区| 成人av先锋影音| 91视频xxxx| av电影一区二区| 欧美少妇bbb| 色婷婷精品大在线视频| 欧洲一区二区三区在线| 欧美疯狂性受xxxxx喷水图片| 日韩一卡二卡三卡四卡| 欧美国产日韩在线观看| 日本一区二区三区四区在线视频| 中文字幕欧美日本乱码一线二线| 26uuu精品一区二区三区四区在线| 欧美大胆人体bbbb| 国产精品久久久久久久久久久免费看 | 国产精品色一区二区三区| 日本一区免费视频| 午夜久久久影院| 91捆绑美女网站| 欧美激情中文字幕一区二区| 国产欧美精品区一区二区三区| 亚洲欧洲99久久| 精东粉嫩av免费一区二区三区| 成人h动漫精品一区二| 精品视频1区2区| 久久久综合视频| 七七婷婷婷婷精品国产| 国产精品亚洲一区二区三区在线| 欧美午夜精品久久久久久超碰 | 欧美一区二区视频网站| 最新久久zyz资源站| 久久电影国产免费久久电影| 懂色av一区二区三区免费看| 欧美一激情一区二区三区| 亚洲国产一区二区三区 | 欧美色精品在线视频| 自拍偷拍亚洲激情| 日韩激情av在线| 91麻豆精品久久久久蜜臀| 国产精品久线在线观看| 国产风韵犹存在线视精品| 欧美成va人片在线观看| 毛片av一区二区三区| 欧美日韩aaa| 免费在线成人网| 久久久久久99精品| 免费精品99久久国产综合精品| 在线电影一区二区三区| 亚洲成人免费在线观看| 在线综合视频播放| 国产一区二区三区在线观看免费| 久久综合狠狠综合久久综合88| 久草中文综合在线| 亚洲欧洲综合另类| 欧美精品在线观看一区二区| 国产一区二区日韩精品| 亚洲精品欧美综合四区| 欧美成人猛片aaaaaaa| 岛国精品一区二区| 五月天网站亚洲| 精品福利一区二区三区| 国产成a人亚洲精| 亚洲一区二区三区四区在线观看| 91精品国产综合久久小美女| 福利一区福利二区| 亚洲一区二区在线视频| 国产欧美一区视频| 91精品国产一区二区三区蜜臀| 成人黄色免费短视频| 免费看欧美女人艹b| 日本一区二区成人在线| 7777女厕盗摄久久久| 国产美女娇喘av呻吟久久 | 国产一区二区三区黄视频| 午夜精品福利一区二区三区av| 午夜影视日本亚洲欧洲精品| 最新热久久免费视频| 亚洲三级在线播放| 综合av第一页| 亚洲国产精品久久久久婷婷884| 国产精品电影院| 亚洲1区2区3区4区| 蜜臀a∨国产成人精品| 国产成人在线视频网址| 欧美在线色视频| 欧美zozozo| 一区二区三区电影在线播| 亚洲电影激情视频网站| 精品在线免费视频| 处破女av一区二区| 欧美中文字幕一区| 欧美日本国产视频| 久久精品一区二区三区不卡| 国产精品婷婷午夜在线观看| 午夜精品成人在线| 高清免费成人av| 欧美电影免费观看高清完整版在线观看 | 久久久www免费人成精品| 一区二区三区四区视频精品免费 | 国产精品嫩草久久久久| 石原莉奈一区二区三区在线观看| 精品一区二区成人精品| 欧美日韩国产小视频在线观看| 欧美精选午夜久久久乱码6080| 欧美国产日本视频| 亚洲国产毛片aaaaa无费看 | 亚洲国产精品麻豆| 欧美三级一区二区| 久久这里只有精品首页| 偷窥少妇高潮呻吟av久久免费| 国产福利精品一区二区| 欧美一级一区二区| 免费高清不卡av| 欧美一区二区三区免费观看视频| 午夜成人免费电影| 欧美精品在线视频| 日本不卡高清视频| 欧美一区二区日韩| 美日韩黄色大片| 日韩美女一区二区三区| 久草在线在线精品观看| 日韩免费性生活视频播放| 美日韩一级片在线观看| 日韩一区二区三区视频| 麻豆国产精品视频| 欧美刺激午夜性久久久久久久| 久久99国产精品久久99果冻传媒| 欧美一级高清片在线观看| 国产一区二区伦理| 亚洲免费观看在线视频| 日韩一区二区三区四区五区六区| 国产一区二区三区四区五区美女| 国产欧美一区二区精品性| 欧美午夜精品一区二区三区| 蜜桃av一区二区三区电影| 国产精品久久久久婷婷二区次| 在线免费观看日韩欧美| 国产真实乱子伦精品视频| 亚洲欧洲日产国产综合网| 日韩欧美一级二级三级久久久| 成人免费观看av| 日韩va欧美va亚洲va久久| 国产欧美精品在线观看| 欧美日韩综合一区| 国产成人综合在线| 亚洲国产精品视频| 成人免费视频在线观看| 日韩一区二区视频| 欧美日韩在线观看一区二区 | 日本一区免费视频| 精品国产一区a| 精品成人免费观看| 欧美一区二区啪啪| 69久久99精品久久久久婷婷| 欧美性大战xxxxx久久久| av电影在线观看完整版一区二区| 国产乱子轮精品视频| 久久精品免费观看| 美洲天堂一区二卡三卡四卡视频| 日韩中文字幕91| 日韩国产欧美视频| 同产精品九九九| 青草国产精品久久久久久| 亚洲一区二区综合| 亚洲电影在线播放| 亚洲第一电影网| 精品一区免费av| 国产一区三区三区| 不卡的电视剧免费网站有什么| 成人午夜精品一区二区三区| 成人综合婷婷国产精品久久| aaa亚洲精品一二三区| 色噜噜狠狠成人中文综合| 欧美人妖巨大在线| 久久久久久一二三区| 国产欧美一区二区精品性| 亚洲国产精品精华液网站| 日韩av高清在线观看| 国产麻豆精品久久一二三| 一本大道久久a久久综合| 欧美放荡的少妇| 国产精品久久久久影院亚瑟| 五月综合激情网| 成人黄色在线视频| 欧美一级搡bbbb搡bbbb| 亚洲国产精品ⅴa在线观看| 亚洲一区二区三区四区五区中文 | 在线91免费看| 一区免费观看视频| 国产一区二区0| 5月丁香婷婷综合|