On Sun, Nov 16, 2008 at 10:52 AM, Florian Köberle <[EMAIL PROTECTED]> wrote: > 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 > > > >
> From 762f49e2192b6d8477826c6535ef1ba0e1fd9d9b Mon Sep 17 00:00:00 2001 > From: =?utf-8?q?Florian=20K=C3=B6berle?= <[EMAIL PROTECTED]> Looks like you've botched the encoding somehow... > + test_thick_child_size(hwndMain); // causes test_capture_2() to fail Don't use C++ style comments, use C (/* comment */) instead. -- -Austin
