Isolated vertical scroll messages with the other vertical scroll code.
This commit is contained in:
parent
16a88c548b
commit
6b2c295fdc
|
@ -104,6 +104,7 @@ struct table {
|
|||
typedef BOOL (*handlerfunc)(struct table *, UINT, WPARAM, LPARAM, LRESULT *);
|
||||
|
||||
const handlerfunc handlerfuncs[] = {
|
||||
vscrollHandler,
|
||||
APIHandler,
|
||||
NULL,
|
||||
};
|
||||
|
@ -175,12 +176,6 @@ if (ImageList_GetIconSize(t->imagelist, &unused, &(t->imagelistHeight)) == 0)abo
|
|||
drawItems(t, dc, ps.rcPaint);
|
||||
EndPaint(hwnd, &ps);
|
||||
return 0;
|
||||
case WM_VSCROLL:
|
||||
vscroll(t, wParam);
|
||||
return 0;
|
||||
case WM_MOUSEWHEEL:
|
||||
wheelscroll(t, wParam);
|
||||
return 0;
|
||||
case WM_HSCROLL:
|
||||
hscroll(t, wParam);
|
||||
return 0;
|
||||
|
|
|
@ -95,3 +95,18 @@ static void vscroll(struct table *t, WPARAM wParam)
|
|||
|
||||
vscrollto(t, newpos);
|
||||
}
|
||||
|
||||
HANDLER(vscroll)
|
||||
{
|
||||
switch (uMsg) {
|
||||
case WM_VSCROLL:
|
||||
vscroll(t, wParam);
|
||||
*lResult = 0;
|
||||
return TRUE;
|
||||
case WM_MOUSEWHEEL:
|
||||
wheelscroll(t, wParam);
|
||||
*lResult = 0;
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue