[1/4] user32/tests: Test size and minmax of WS_THICKFRAME child.

Florian Köberle florian at fkoeberle.de
Sun Nov 16 10:52:55 CST 2008


Patch to fix bug 15188.

This work is based on:
http://www.winehq.org/pipermail/wine-patches/2008-October/062460.html

In this new patch series I calculate size like this:

const int outer = 2;
int resizeBorder = GetSystemMetrics(SM_CXFRAME) -
GetSystemMetrics(SM_CXDLGFRAME);
int size =  2*(outer + resizeBorder);

I took this formular from dlls/user32/nonclient.c:
------------------
        adjust = 0;
        if ((exStyle & WS_EX_DLGMODALFRAME) ||
            (style & (WS_THICKFRAME|WS_DLGFRAME))) adjust = 2; /* outer */
    }
    if (style & WS_THICKFRAME)
        adjust +=  ( GetSystemMetrics (SM_CXFRAME)
                   - GetSystemMetrics (SM_CXDLGFRAME)); /* The resize
border */
------------------

While writing this test I also tried some other styles and compared the
behavior between
CreateWindowEx and AdjustWindowRectEx. It didn't look like they have
much in common, that is why I didn't wrote the test against
AdjustWindowRectEx.

Best regards,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-tests-Test-size-and-minmax-of-WS_THICKFRAME.patch
Type: text/x-diff
Size: 5043 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081116/3c0d3f30/attachment.patch 


More information about the wine-patches mailing list