Huw Davies : comctl32: Wordwrap the sub title.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 1 12:45:41 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 12c0da681577808b9afe2f7a15027a0aa1f31418
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=12c0da681577808b9afe2f7a15027a0aa1f31418

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jul 31 13:58:43 2006 +0100

comctl32: Wordwrap the sub title.

---

 dlls/comctl32/propsheet.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index f6796c6..01f2d0a 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -3283,8 +3283,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd
 				      szBuffer, 256);
 		if (nLength != 0)
 		{
-		    DrawTextW(hdc, szBuffer, nLength,
-			      &r, DT_LEFT | DT_SINGLELINE | DT_NOCLIP);
+		    DrawTextW(hdc, szBuffer, nLength, &r, DT_LEFT | DT_SINGLELINE | DT_NOCLIP);
 		}
 	    }
 	}
@@ -3293,15 +3292,14 @@ static LRESULT PROPSHEET_Paint(HWND hwnd
 	    SelectObject(hdc, psInfo->hFont);
 	    SetRect(&r, 40, 25, rzone.right - 69, rzone.bottom);
 	    if (HIWORD(ppshpage->pszHeaderTitle))
-                DrawTextW(hdc, ppshpage->pszHeaderSubTitle, -1, &r, DT_LEFT | DT_SINGLELINE);
+                DrawTextW(hdc, ppshpage->pszHeaderSubTitle, -1, &r, DT_LEFT | DT_WORDBREAK);
 	    else
 	    {
 		nLength = LoadStringW(ppshpage->hInstance, (UINT_PTR)ppshpage->pszHeaderSubTitle,
 				      szBuffer, 256);
 		if (nLength != 0)
 		{
-		    DrawTextW(hdc, szBuffer, nLength,
-			      &r, DT_LEFT | DT_SINGLELINE);
+		    DrawTextW(hdc, szBuffer, nLength, &r, DT_LEFT | DT_WORDBREAK);
 		}
 	    }
 	}




More information about the wine-cvs mailing list