mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +00:00
Fixed calculating the size of empty message boxes. Fixes bug 1224
svn path=/trunk/; revision=20511
This commit is contained in:
parent
541e05f9c5
commit
e0d9018bb4
1 changed files with 9 additions and 1 deletions
|
@ -493,7 +493,15 @@ MessageBoxTimeoutIndirectW(
|
|||
txtrect.right -= GetSystemMetrics(SM_CXICON) + MSGBOXEX_SPACING;
|
||||
txtrect.top = txtrect.left = txtrect.bottom = 0;
|
||||
SelectObject(hDC, hFont);
|
||||
DrawTextW(hDC, text, textlen, &txtrect, DT_LEFT | DT_NOPREFIX | DT_WORDBREAK | DT_CALCRECT);
|
||||
if (textlen != 0)
|
||||
{
|
||||
DrawTextW(hDC, text, textlen, &txtrect, DT_LEFT | DT_NOPREFIX | DT_WORDBREAK | DT_CALCRECT);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtrect.right = txtrect.left + 1;
|
||||
txtrect.bottom = txtrect.top + 1;
|
||||
}
|
||||
txtrect.right++;
|
||||
|
||||
/* calculate position and size of the icon */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue