mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +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:
parent
bde15621e5
commit
c4811617d1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue