mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 09:51:56 +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:
|
case WM_NOTIFYICONMSG:
|
||||||
switch (lParam)
|
switch (lParam)
|
||||||
{
|
{
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONUP:
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONUP:
|
||||||
{
|
{
|
||||||
POINT pt;
|
POINT pt;
|
||||||
|
|
||||||
GetCursorPos(&pt);
|
GetCursorPos(&pt);
|
||||||
SetForegroundWindow(hwnd);
|
SetForegroundWindow(hwnd);
|
||||||
|
|
||||||
if (lParam == WM_LBUTTONDOWN)
|
if (lParam == WM_LBUTTONUP)
|
||||||
{
|
{
|
||||||
HMENU hLeftPopupMenu;
|
HMENU hLeftPopupMenu;
|
||||||
|
|
||||||
/* Rebuild the left popup menu on every click to take care of keyboard layout changes */
|
/* Rebuild the left popup menu on every click to take care of keyboard layout changes */
|
||||||
hLeftPopupMenu = BuildLeftPopupMenu();
|
hLeftPopupMenu = BuildLeftPopupMenu();
|
||||||
TrackPopupMenu(hLeftPopupMenu, 0, pt.x, pt.y, 0, hwnd, NULL);
|
TrackPopupMenu(hLeftPopupMenu, 0, pt.x, pt.y, 0, hwnd, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue