IMO, this change is wrong, it's a hack to a problem we have with text placement. Text is cut short on other controls too, not just messageboxes. Check out labels for example.
Ged.
fireball@svn.reactos.org wrote:
Author: fireball Date: Wed Aug 15 18:49:44 2007 New Revision: 28351
URL: http://svn.reactos.org/svn/reactos?rev=28351&view=rev Log: Dmitry Chapyshev lentind@yandex.ru:
- Fix so that letters like "p" or "y" are correctly displayed in messageboxes.
Modified: trunk/reactos/dll/win32/user32/windows/messagebox.c
Modified: trunk/reactos/dll/win32/user32/windows/messagebox.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/me... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/messagebox.c (original) +++ trunk/reactos/dll/win32/user32/windows/messagebox.c Wed Aug 15 18:49:44 2007 @@ -491,7 +491,7 @@ txtrect.right = GetSystemMetrics(SM_CXSCREEN) / 5 * 4; if(Icon) txtrect.right -= GetSystemMetrics(SM_CXICON) + MSGBOXEX_SPACING;
- txtrect.top = txtrect.left = txtrect.bottom = 0;
- txtrect.top = txtrect.left = txtrect.bottom = 5; SelectObject(hDC, hFont); if (textlen != 0) {