mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 08:08:56 +00:00
capture mode while scrolling start menus
svn path=/trunk/; revision=9791
This commit is contained in:
parent
c8fb75517f
commit
1f85769d05
|
@ -321,6 +321,13 @@ LRESULT StartMenu::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
|||
|
||||
case WM_CANCELMODE:
|
||||
CloseStartMenu();
|
||||
|
||||
#ifdef _LIGHT_STARTMENU
|
||||
if (_scroll_mode != SCROLL_NOT) {
|
||||
ReleaseCapture();
|
||||
KillTimer(_hwnd, 0);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
#ifdef _LIGHT_STARTMENU
|
||||
|
@ -342,11 +349,13 @@ LRESULT StartMenu::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
|||
scroll_mode = SCROLL_DOWN;
|
||||
|
||||
if (scroll_mode != _scroll_mode) {
|
||||
if (scroll_mode == SCROLL_NOT)
|
||||
if (scroll_mode == SCROLL_NOT) {
|
||||
ReleaseCapture();
|
||||
KillTimer(_hwnd, 0);
|
||||
else {
|
||||
} else {
|
||||
CloseSubmenus();
|
||||
SetTimer(_hwnd, 0, 150, NULL); // 150 ms scroll interval
|
||||
SetCapture(_hwnd);
|
||||
}
|
||||
|
||||
_scroll_mode = scroll_mode;
|
||||
|
|
Loading…
Reference in a new issue