Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 407 of file pager.c.
Referenced by PAGER_RecalcSize(), and PAGER_SetPos().
{ INT scrollRange = 0; if (infoPtr->hwndChild) { INT wndSize, childSize; RECT wndRect; GetWindowRect(infoPtr->hwndSelf, &wndRect); if (infoPtr->dwStyle & PGS_HORZ) { wndSize = wndRect.right - wndRect.left; PAGER_CalcSize(infoPtr, &infoPtr->nWidth, TRUE); childSize = infoPtr->nWidth; } else { wndSize = wndRect.bottom - wndRect.top; PAGER_CalcSize(infoPtr, &infoPtr->nHeight, FALSE); childSize = infoPtr->nHeight; } TRACE("childSize = %d, wndSize = %d\n", childSize, wndSize); if (childSize > wndSize) scrollRange = childSize - wndSize + infoPtr->nButtonSize; } TRACE("[%p] returns %d\n", infoPtr->hwndSelf, scrollRange); return scrollRange; }