mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
- Don't allow selecting separators in start menu and avoid nasty refreshing when moving mouse above the left ReactOS Logo bar.
svn path=/trunk/; revision=10392
This commit is contained in:
@@ -364,7 +364,7 @@ LRESULT StartMenu::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||
|
||||
int new_id = ButtonHitTest(pt);
|
||||
|
||||
if (new_id != _selected_id)
|
||||
if (new_id > 0 && new_id != _selected_id)
|
||||
SelectButton(new_id);
|
||||
|
||||
_last_mouse_pos = lparam;
|
||||
@@ -490,7 +490,7 @@ int StartMenu::ButtonHitTest(POINT pt)
|
||||
|
||||
void StartMenu::InvalidateSelection()
|
||||
{
|
||||
if (!_selected_id)
|
||||
if (_selected_id <= 0)
|
||||
return;
|
||||
|
||||
ClientRect clnt(_hwnd);
|
||||
|
||||
Reference in New Issue
Block a user