Skip to content
Snippets Groups Projects
Commit f8acf0c4 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard
Browse files

Support PGN_SCROLL notify and return either the button heigth or width.

parent 501d9511
No related branches found
No related tags found
No related merge requests found
......@@ -5209,6 +5209,16 @@ TOOLBAR_Notify (HWND hwnd, WPARAM wParam, LPARAM lParam)
return 0;
}
if (lpnmh->code == PGN_SCROLL) {
LPNMPGSCROLL lppgs = (LPNMPGSCROLL)lParam;
lppgs->iScroll = (lppgs->iDir & (PGF_SCROLLLEFT | PGF_SCROLLRIGHT)) ?
infoPtr->nButtonWidth : infoPtr->nButtonHeight;
TRACE("processed PGN_SCROLL, returning scroll=%d, dir=%d\n",
lppgs->iScroll, lppgs->iDir);
return 0;
}
TRACE("passing WM_NOTIFY!\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment