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

This commit is contained in:
Guy L. Albertelli 2002-05-14 03:50:23 +00:00 committed by Alexandre Julliard
parent 501d951123
commit f8acf0c440
1 changed files with 10 additions and 0 deletions

View File

@ -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");