<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    或許,我會(huì)成為一名畫家。。。
    this.tabContents.DrawMode = TabDrawMode.OwnerDrawFixed;

            //--------------------------------------------------------------------------
            /// <summary>
            
    /// TabControl DrawItem時(shí)発生します。
            
    /// </summary>
            
    /// <param name="sender"></param>
            
    /// <param name="e"></param>
            //--------------------------------------------------------------------------
            private void tabContents_DrawItem(object sender, DrawItemEventArgs e)
            {
                SolidBrush pink = new SolidBrush(Color.Pink);
                SolidBrush ws = new SolidBrush(Color.LightGray);
                SolidBrush white = new SolidBrush(Color.White);
                SolidBrush black = new SolidBrush(Color.Black);
                StringFormat sf = new StringFormat();
                Pen pen = new Pen(Color.Gray);
                sf.Alignment = StringAlignment.Center;

                string text = tabContents.TabPages[e.Index].Text;
                Rectangle rect = tabContents.GetTabRect(e.Index);
                Rectangle rectSelected = new Rectangle(rect.X - 3, rect.Y - 3, rect.Width, rect.Height + 3);
                if (text == "メモ" && hasMemo)
                    e.Graphics.FillRectangle(pink, rect);
                else
                {
                    if (tabContents.SelectedIndex == e.Index)
                        e.Graphics.FillRectangle(white, rectSelected);
                    else
                        e.Graphics.FillRectangle(ws, rect);
                }

                Rectangle rectText = new Rectangle(rect.X, rect.Y + 3, rect.Width, rect.Height + 3);
                e.Graphics.DrawString(text, new Font("MS UI Gothic", 9), black, rectText, sf);

                Point p1 = new Point(rect.X, rect.Y);
                Point p2 = new Point(rect.X, rect.Y + rect.Height);
                e.Graphics.DrawLine(pen, p1, p2);
                p1 = new Point(rect.X + rect.Width, rect.Y);
                p2 = new Point(rect.X + rect.Width, rect.Y + rect.Height);
                e.Graphics.DrawLine(pen, p1, p2);
                p1 = new Point(rect.X, rect.Y);
                p2 = new Point(rect.X + rect.Width, rect.Y);
                e.Graphics.DrawLine(pen, p1, p2);
            }
    posted on 2016-04-18 16:51 Ying-er 閱讀(443) 評(píng)論(0)  編輯  收藏 所屬分類: .Net
    主站蜘蛛池模板: 亚洲伊人久久大香线焦| 亚洲91av视频| 在线观看亚洲专区| 免费观看大片毛片| 免费人成视频在线观看视频| 亚洲人成网77777色在线播放| 亚洲一区二区成人| 日韩免费无码一区二区三区| 日本高清免费aaaaa大片视频| 亚洲AV成人片色在线观看 | 最新国产成人亚洲精品影院| 老司机午夜精品视频在线观看免费| 久草福利资源网站免费| 亚洲av之男人的天堂网站| 久久久国产精品福利免费| 宅男666在线永久免费观看| 色欲aⅴ亚洲情无码AV蜜桃| 亚洲高清成人一区二区三区| 中文字幕无线码免费人妻| 亚洲AV无码专区亚洲AV伊甸园| 黄色a级免费网站| 永久免费AV无码国产网站| wwwxxx亚洲| 亚洲精品无码专区2| 最近免费字幕中文大全| 亚洲精品熟女国产| 国产精品另类激情久久久免费| 亚洲乱码卡一卡二卡三| 日韩中文无码有码免费视频| 精品日韩99亚洲的在线发布 | 99久久国产精品免费一区二区 | 一级特黄录像免费播放肥| 国产成人精品日本亚洲| 男男AV纯肉无码免费播放无码| 亚洲视频在线观看免费视频| 中文成人久久久久影院免费观看| 亚洲第一区精品日韩在线播放| 怡红院亚洲红怡院在线观看| 亚洲精品tv久久久久久久久 | 在线看片免费人成视频福利| 中中文字幕亚洲无线码|