- 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:
Filip Navara 2004-08-04 18:19:01 +00:00
parent bde15621e5
commit c4811617d1

View file

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