mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 17:01:49 +00:00
[KBSWITCH] Improve mouse events handling. By Joachim Henze. CORE-9883
svn path=/trunk/; revision=68294
This commit is contained in:
parent
50991778f3
commit
bc5c68db6d
1 changed files with 3 additions and 4 deletions
|
@ -434,18 +434,17 @@ WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
|||
case WM_NOTIFYICONMSG:
|
||||
switch (lParam)
|
||||
{
|
||||
case WM_RBUTTONDOWN:
|
||||
case WM_LBUTTONDOWN:
|
||||
case WM_RBUTTONUP:
|
||||
case WM_LBUTTONUP:
|
||||
{
|
||||
POINT pt;
|
||||
|
||||
GetCursorPos(&pt);
|
||||
SetForegroundWindow(hwnd);
|
||||
|
||||
if (lParam == WM_LBUTTONDOWN)
|
||||
if (lParam == WM_LBUTTONUP)
|
||||
{
|
||||
HMENU hLeftPopupMenu;
|
||||
|
||||
/* Rebuild the left popup menu on every click to take care of keyboard layout changes */
|
||||
hLeftPopupMenu = BuildLeftPopupMenu();
|
||||
TrackPopupMenu(hLeftPopupMenu, 0, pt.x, pt.y, 0, hwnd, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue