Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 275 of file display.c.
Referenced by DisplayProc().
{ RECT rect; SCROLLINFO si; int nOldPos; GetClientRect(hwnd, &rect); /* Get the old scroll pos */ si.cbSize = sizeof(si); si.fMask = SIF_POS; GetScrollInfo(hwnd, SB_VERT, &si); nOldPos = si.nPos; /* Set the new page size */ si.fMask = SIF_PAGE; si.nPage = rect.bottom; SetScrollInfo(hwnd, SB_VERT, &si, TRUE); /* Get the new scroll pos */ si.fMask = SIF_POS; GetScrollInfo(hwnd, SB_VERT, &si); /* If they don't match ... */ if (nOldPos != si.nPos) { /* ... scroll the window */ ScrollWindowEx(hwnd, 0, nOldPos - si.nPos, NULL, NULL, NULL, NULL, SW_INVALIDATE); UpdateWindow(hwnd); } return 0; }