comparison win/dw.c @ 896:529c27638936

Added missing SIF_PAGE getting SCROLLINFO on Windows. This was causing scrollbox paging to function erratically.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 18 Apr 2011 06:06:13 +0000
parents 379b7e8c5c1c
children db26726118ba
comparison
equal deleted inserted replaced
895:8c29ea2d17fc 896:529c27638936
3236 ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(hwnd, GWLP_USERDATA); 3236 ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
3237 SCROLLINFO hsi, vsi, *si = &hsi; 3237 SCROLLINFO hsi, vsi, *si = &hsi;
3238 int bar = SB_HORZ; 3238 int bar = SB_HORZ;
3239 int which = LOWORD(mp1); 3239 int which = LOWORD(mp1);
3240 3240
3241 /* Initialize the scroll info structs */
3241 vsi.cbSize = hsi.cbSize = sizeof(SCROLLINFO); 3242 vsi.cbSize = hsi.cbSize = sizeof(SCROLLINFO);
3242 vsi.fMask = hsi.fMask = SIF_POS | SIF_RANGE; 3243 vsi.fMask = hsi.fMask = SIF_POS | SIF_RANGE | SIF_PAGE;
3243 3244
3244 /* Save the current scroll positions */ 3245 /* Save the current scroll positions */
3245 GetScrollInfo(hwnd, SB_HORZ, &hsi); 3246 GetScrollInfo(hwnd, SB_HORZ, &hsi);
3246 GetScrollInfo(hwnd, SB_VERT, &vsi); 3247 GetScrollInfo(hwnd, SB_VERT, &vsi);
3247 3248