comctl32: Remove the last, unused parameter from LISTVIEW_VScroll and all its invocations.
This commit is contained in:
parent
b93a9b37fa
commit
84a6598290
|
@ -456,7 +456,7 @@ static INT LISTVIEW_GetStringWidthT(const LISTVIEW_INFO *, LPCWSTR, BOOL);
|
|||
static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *, INT, BOOL);
|
||||
static UINT LISTVIEW_GetItemState(const LISTVIEW_INFO *, INT, UINT);
|
||||
static BOOL LISTVIEW_SetItemState(LISTVIEW_INFO *, INT, const LVITEMW *);
|
||||
static LRESULT LISTVIEW_VScroll(LISTVIEW_INFO *, INT, INT, HWND);
|
||||
static LRESULT LISTVIEW_VScroll(LISTVIEW_INFO *, INT, INT);
|
||||
static LRESULT LISTVIEW_HScroll(LISTVIEW_INFO *, INT, INT, HWND);
|
||||
static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *, INT, BOOL);
|
||||
static HIMAGELIST LISTVIEW_SetImageList(LISTVIEW_INFO *, INT, HIMAGELIST);
|
||||
|
@ -6033,7 +6033,7 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart
|
|||
{
|
||||
INT diff = nVertDiff / nScrollPosHeight;
|
||||
if (nVertDiff % nScrollPosHeight) diff += nVertAdjust;
|
||||
LISTVIEW_VScroll(infoPtr, SB_INTERNAL, diff, 0);
|
||||
LISTVIEW_VScroll(infoPtr, SB_INTERNAL, diff);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
@ -7816,7 +7816,7 @@ static BOOL LISTVIEW_Scroll(LISTVIEW_INFO *infoPtr, INT dx, INT dy)
|
|||
}
|
||||
|
||||
if (dx != 0) LISTVIEW_HScroll(infoPtr, SB_INTERNAL, dx, 0);
|
||||
if (dy != 0) LISTVIEW_VScroll(infoPtr, SB_INTERNAL, dy, 0);
|
||||
if (dy != 0) LISTVIEW_VScroll(infoPtr, SB_INTERNAL, dy);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -9449,7 +9449,7 @@ static void scroll_list(LISTVIEW_INFO *infoPtr, INT dx, INT dy)
|
|||
*
|
||||
*/
|
||||
static LRESULT LISTVIEW_VScroll(LISTVIEW_INFO *infoPtr, INT nScrollCode,
|
||||
INT nScrollDiff, HWND hScrollWnd)
|
||||
INT nScrollDiff)
|
||||
{
|
||||
INT nOldScrollPos, nNewScrollPos;
|
||||
SCROLLINFO scrollInfo;
|
||||
|
@ -9654,7 +9654,7 @@ static LRESULT LISTVIEW_MouseWheel(LISTVIEW_INFO *infoPtr, INT wheelDelta)
|
|||
* should be fixed in the future.
|
||||
*/
|
||||
LISTVIEW_VScroll(infoPtr, SB_INTERNAL, (gcWheelDelta < 0) ?
|
||||
-LISTVIEW_SCROLL_ICON_LINE_SIZE : LISTVIEW_SCROLL_ICON_LINE_SIZE, 0);
|
||||
-LISTVIEW_SCROLL_ICON_LINE_SIZE : LISTVIEW_SCROLL_ICON_LINE_SIZE);
|
||||
break;
|
||||
|
||||
case LV_VIEW_DETAILS:
|
||||
|
@ -9662,7 +9662,7 @@ static LRESULT LISTVIEW_MouseWheel(LISTVIEW_INFO *infoPtr, INT wheelDelta)
|
|||
{
|
||||
int cLineScroll = min(LISTVIEW_GetCountPerColumn(infoPtr), pulScrollLines);
|
||||
cLineScroll *= (gcWheelDelta / WHEEL_DELTA);
|
||||
LISTVIEW_VScroll(infoPtr, SB_INTERNAL, cLineScroll, 0);
|
||||
LISTVIEW_VScroll(infoPtr, SB_INTERNAL, cLineScroll);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -11493,7 +11493,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
return LISTVIEW_ThemeChanged(infoPtr);
|
||||
|
||||
case WM_VSCROLL:
|
||||
return LISTVIEW_VScroll(infoPtr, (INT)LOWORD(wParam), 0, (HWND)lParam);
|
||||
return LISTVIEW_VScroll(infoPtr, (INT)LOWORD(wParam), 0);
|
||||
|
||||
case WM_MOUSEWHEEL:
|
||||
if (wParam & (MK_SHIFT | MK_CONTROL))
|
||||
|
|
Loading…
Reference in New Issue