File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/System.Windows.Forms/System/Windows/Forms/Controls/RichTextBox Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3435,8 +3435,8 @@ protected override unsafe void WndProc(ref Message m)
3435
3435
base . WndProc ( ref m ) ;
3436
3436
3437
3437
// If the control is disabled, we don't want to let the RTF control
3438
- // paint anything else. We will paint the background and the text
3439
- // ourselves, so we don't want the RTF control to paint the background
3438
+ // paint anything else. We will paint the background and the unformatted
3439
+ // text ourselves, so we don't want the RTF control to paint the background
3440
3440
// and the text in the foreground color.
3441
3441
using Graphics g = Graphics . FromHwndInternal ( Handle ) ;
3442
3442
@@ -3450,7 +3450,10 @@ protected override unsafe void WndProc(ref Message m)
3450
3450
Font ,
3451
3451
ClientRectangle ,
3452
3452
SystemColors . GrayText ,
3453
- TextFormatFlags . Left | TextFormatFlags . VerticalCenter ) ;
3453
+ TextFormatFlags . Left
3454
+ | TextFormatFlags . Top
3455
+ | TextFormatFlags . WordBreak ,
3456
+ | TextFormatFlags . EndEllipsis ) ;
3454
3457
3455
3458
return ;
3456
3459
}
You can’t perform that action at this time.
0 commit comments