Kusanagi Kouichi : user32: Make DefWindowProc handle Shift+F10.

Alexandre Julliard julliard at winehq.org
Thu Jan 14 11:33:37 CST 2010


Module: wine
Branch: master
Commit: 529b1833978e2cc3d2477395eababaf038d8fe4d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=529b1833978e2cc3d2477395eababaf038d8fe4d

Author: Kusanagi Kouichi <slash at ac.auone-net.jp>
Date:   Wed Jan 13 22:55:25 2010 +0900

user32: Make DefWindowProc handle Shift+F10.

---

 dlls/user32/defwnd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index ae104e2..e3736fc 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -561,7 +561,11 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
             }
         }
         else if( wParam == VK_F10 )
+        {
+            if (GetKeyState(VK_SHIFT) & 0x8000)
+                SendMessageW( hwnd, WM_CONTEXTMENU, (WPARAM)hwnd, MAKELPARAM(-1, -1) );
             iF10Key = 1;
+        }
         else if( wParam == VK_ESCAPE && (GetKeyState(VK_SHIFT) & 0x8000))
             SendMessageW( hwnd, WM_SYSCOMMAND, SC_KEYMENU, ' ' );
         break;




More information about the wine-cvs mailing list