[ros-dev] [ros-diffs] [fireball] 28351: Dmitry Chapyshev <lentind at yandex.ru>: - Fix so that letters like "p" or "y" are correctly displayed in messageboxes.

Ged gedmurphy at gmail.com
Thu Aug 16 20:24:27 CEST 2007


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 at 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 at 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/messagebox.c?rev=28351&r1=28350&r2=28351&view=diff
> ==============================================================================
> --- 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)
>      {
>
>
>
>   



More information about the Ros-dev mailing list