[Bug 26747] SIV Window Resize and AdjustWindowRect() off-by-one issue

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Apr 13 07:20:12 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26747

Dmitry Timoshkov <dmitry at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|user32                      |-unknown
         Resolution|                            |INVALID

--- Comment #1 from Dmitry Timoshkov <dmitry at codeweavers.com> 2011-04-13 07:20:11 CDT ---
The following test application

#include <windows.h>
#include <stdio.h>

int main(void)
{
    RECT rc;

    rc.left = 0;
    rc.top = 0;
    rc.right = 100;
    rc.bottom = 100;
    AdjustWindowRect(&rc, WS_CAPTION | WS_THICKFRAME, FALSE);
    printf("0,0-100,100 => %ld,%ld-%ld,%ld\n", rc.left, rc.top, rc.right,
rc.bottom);
    printf("SM_CXFRAME %d, SM_CYFRAME %d\n", GetSystemMetrics(SM_CXFRAME),
GetSystemMetrics(SM_CYFRAME));

    return 0;
}

prints under XP:

0,0-100,100 => -4,-36-104,104
SM_CXFRAME 4, SM_CYFRAME 4

under Wine:

0,0-100,100 => -4,-23-104,104
SM_CXFRAME 4, SM_CYFRAME 4

which is perfectly valid, caption size is different but it's expected.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list