Made TrackPopupMenu with TPM_RETURNCMD returning the id instead of
true.
This commit is contained in:
parent
c87736df1f
commit
371c420549
|
@ -2790,9 +2790,8 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
|
||||||
/* Reset the variable for hiding menu */
|
/* Reset the variable for hiding menu */
|
||||||
menu->bTimeToHide = FALSE;
|
menu->bTimeToHide = FALSE;
|
||||||
|
|
||||||
/* Return 1 if executedMenuId != -1.
|
/* The return value is only used by TrackPopupMenu */
|
||||||
The return value is only used by TrackPopupMenu */
|
return ((executedMenuId != -1) ? executedMenuId : 0);
|
||||||
return ((executedMenuId != -1) ? 1 : 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue