mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
translate WM_NCRBUTTONUP messages to WM_CONTEXTMENU if HitTest == HTCAPTION or HTSYSMENU
svn path=/trunk/; revision=7285
This commit is contained in:
parent
cba7351fef
commit
0bbf2ce262
1 changed files with 11 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: msgqueue.c,v 1.58 2003/12/26 22:52:11 gvg Exp $
|
||||
/* $Id: msgqueue.c,v 1.59 2003/12/28 10:27:51 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -377,7 +377,16 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
|
|||
if ((*HitTest) != HTCLIENT)
|
||||
{
|
||||
Msg += WM_NCMOUSEMOVE - WM_MOUSEMOVE;
|
||||
Message->Msg.wParam = *HitTest;
|
||||
if((Msg == WM_NCRBUTTONUP) &&
|
||||
(((*HitTest) == HTCAPTION) || ((*HitTest) == HTSYSMENU)))
|
||||
{
|
||||
Msg = WM_CONTEXTMENU;
|
||||
Message->Msg.wParam = (WPARAM)Window->Self;
|
||||
}
|
||||
else
|
||||
{
|
||||
Message->Msg.wParam = *HitTest;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue