Re: comctl32: Fix propsheet size calculation (resent)
Vitaliy <vitaliy(a)kievinfo.com> 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 - rc.top);
That doesn't make sense. What are you trying to compute here? -- Alexandre Julliard julliard(a)winehq.org
Alexandre Julliard wrote:
Vitaliy <vitaliy(a)kievinfo.com> 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 - rc.top);
That doesn't make sense. What are you trying to compute here?
The size of non-client area - window borders and the title. Vitaliy.
Vitaliy Margolen <wine-devel(a)kievinfo.com> writes:
Alexandre Julliard wrote:
Vitaliy <vitaliy(a)kievinfo.com> 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 - rc.top);
That doesn't make sense. What are you trying to compute here?
The size of non-client area - window borders and the title.
Even after fixing the typos it doesn't really make sense, especially with names like tabOffsetX. You probably want AdjustWindowRect or something like that. -- Alexandre Julliard julliard(a)winehq.org
Alexandre Julliard wrote:
Vitaliy Margolen <wine-devel(a)kievinfo.com> writes:
Alexandre Julliard wrote:
Vitaliy <vitaliy(a)kievinfo.com> 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 - rc.top); That doesn't make sense. What are you trying to compute here?
The size of non-client area - window borders and the title.
Even after fixing the typos it doesn't really make sense, especially with names like tabOffsetX. You probably want AdjustWindowRect or something like that.
Oh, indeed. I will resubmit using AdjustWindowRect(). Thanks. Vitaliy.
participants (2)
-
Alexandre Julliard -
Vitaliy Margolen