Re: comctl32: Fix propsheet size calculation (resent)

2009-01-30 Thread Vitaliy Margolen
Alexandre Julliard wrote: > Vitaliy Margolen writes: > >> Alexandre Julliard wrote: >>> Vitaliy writes: >>> + /* Get non-client size */ + if (!psInfo->isModeless) + { +RECT rc1; + +GetWindowRect(hwndDlg, &rc); +GetClientRect(hwndDlg, &rc1);

Re: comctl32: Fix propsheet size calculation (resent)

2009-01-30 Thread Alexandre Julliard
Vitaliy Margolen writes: > Alexandre Julliard wrote: >> Vitaliy writes: >> >>> + /* Get non-client size */ >>> + if (!psInfo->isModeless) >>> + { >>> +RECT rc1; >>> + >>> +GetWindowRect(hwndDlg, &rc); >>> +GetClientRect(hwndDlg, &rc1); >>> +tabOffsetX = rc.right - rc.left -

Re: comctl32: Fix propsheet size calculation (resent)

2009-01-30 Thread Vitaliy Margolen
Alexandre Julliard wrote: > Vitaliy writes: > >> + /* Get non-client size */ >> + if (!psInfo->isModeless) >> + { >> +RECT rc1; >> + >> +GetWindowRect(hwndDlg, &rc); >> +GetClientRect(hwndDlg, &rc1); >> +tabOffsetX = rc.right - rc.left - (rc1.right - rc.left); >> +tabOffs

Re: comctl32: Fix propsheet size calculation (resent)

2009-01-30 Thread Alexandre Julliard
Vitaliy writes: > + /* Get non-client size */ > + if (!psInfo->isModeless) > + { > +RECT rc1; > + > +GetWindowRect(hwndDlg, &rc); > +GetClientRect(hwndDlg, &rc1); > +tabOffsetX = rc.right - rc.left - (rc1.right - rc.left); > +tabOffsetY = rc.bottom - rc.top - (rc1.bottom

Re: comctl32: Fix propsheet size calculation

2009-01-27 Thread Vitaliy Margolen
Vitaliy Margolen wrote: > Size of tabs has nothing to do with the size of a window title. > Fixes bug 8522. > --- > dlls/comctl32/propsheet.c | 17 ++--- > 1 files changed, 14 insertions(+), 3 deletions(-) > Was there anything wrong with this patch? Adding tests for this won't work