From: anis774 Date: Tue, 14 Sep 2010 01:45:10 +0000 (+0000) Subject: ・リスト上の&に続く文字が&を含めて下線付きで表示される不具合を修正。 X-Git-Tag: Tween_v0.9.6.0~67 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=911470c6654eee8956cc6b08e1f43c23d5ca20a8;p=opentween%2Fopen-tween.git ・リスト上の&に続く文字が&を含めて下線付きで表示される不具合を修正。 git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@862 e39ad16e-3079-482e-bb30-4b4d378143b6 --- diff --git a/Tween/Tween.vb b/Tween/Tween.vb index 05df7622..04ded8bc 100644 --- a/Tween/Tween.vb +++ b/Tween/Tween.vb @@ -3793,7 +3793,7 @@ Public Class TweenMain e.Graphics.DrawString(e.Item.SubItems(4).Text + " / " + e.Item.SubItems(1).Text + " (" + e.Item.SubItems(3).Text + ") " + e.Item.SubItems(5).Text + e.Item.SubItems(6).Text + " [" + e.Item.SubItems(7).Text + "]", fnt, brs, rctB, sf) fnt.Dispose() ElseIf e.Bounds.Height < e.Item.Font.Height * 2 Then - TextRenderer.DrawText(e.Graphics, e.SubItem.Text, e.Item.Font, Rectangle.Round(rct), brs.Color, TextFormatFlags.SingleLine Or TextFormatFlags.EndEllipsis Or TextFormatFlags.LeftAndRightPadding) + TextRenderer.DrawText(e.Graphics, e.SubItem.Text, e.Item.Font, Rectangle.Round(rct), brs.Color, TextFormatFlags.SingleLine Or TextFormatFlags.EndEllipsis Or TextFormatFlags.LeftAndRightPadding Or TextFormatFlags.NoPrefix) Else e.Graphics.DrawString(e.SubItem.Text, e.Item.Font, brs, rct, sf) End If @@ -3808,7 +3808,7 @@ Public Class TweenMain e.Graphics.DrawString(System.Environment.NewLine + e.Item.SubItems(2).Text, e.Item.Font, _brsHighLightText, rct, sf) e.Graphics.DrawString(e.Item.SubItems(4).Text + " / " + e.Item.SubItems(1).Text + " (" + e.Item.SubItems(3).Text + ") " + e.Item.SubItems(5).Text + e.Item.SubItems(6).Text + " [" + e.Item.SubItems(7).Text + "]", fnt, _brsHighLightText, rctB, sf) ElseIf e.Bounds.Height < e.Item.Font.Height * 2 Then - TextRenderer.DrawText(e.Graphics, e.SubItem.Text, e.Item.Font, Rectangle.Round(rct), _brsHighLightText.Color, TextFormatFlags.SingleLine Or TextFormatFlags.EndEllipsis Or TextFormatFlags.LeftAndRightPadding) + TextRenderer.DrawText(e.Graphics, e.SubItem.Text, e.Item.Font, Rectangle.Round(rct), _brsHighLightText.Color, TextFormatFlags.SingleLine Or TextFormatFlags.EndEllipsis Or TextFormatFlags.LeftAndRightPadding Or TextFormatFlags.NoPrefix) Else e.Graphics.DrawString(e.SubItem.Text, e.Item.Font, _brsHighLightText, rct, sf) End If @@ -3817,7 +3817,7 @@ Public Class TweenMain e.Graphics.DrawString(System.Environment.NewLine + e.Item.SubItems(2).Text, e.Item.Font, _brsForeColorUnread, rct, sf) e.Graphics.DrawString(e.Item.SubItems(4).Text + " / " + e.Item.SubItems(1).Text + " (" + e.Item.SubItems(3).Text + ") " + e.Item.SubItems(5).Text + e.Item.SubItems(6).Text + " [" + e.Item.SubItems(7).Text + "]", fnt, _brsForeColorUnread, rctB, sf) ElseIf e.Bounds.Height < e.Item.Font.Height * 2 Then - TextRenderer.DrawText(e.Graphics, e.SubItem.Text, e.Item.Font, Rectangle.Round(rct), _brsForeColorUnread.Color, TextFormatFlags.SingleLine Or TextFormatFlags.EndEllipsis Or TextFormatFlags.LeftAndRightPadding) + TextRenderer.DrawText(e.Graphics, e.SubItem.Text, e.Item.Font, Rectangle.Round(rct), _brsForeColorUnread.Color, TextFormatFlags.SingleLine Or TextFormatFlags.EndEllipsis Or TextFormatFlags.LeftAndRightPadding Or TextFormatFlags.NoPrefix) Else e.Graphics.DrawString(e.SubItem.Text, e.Item.Font, _brsForeColorUnread, rct, sf) End If