Author: dreimer
Date: Mon Aug 10 10:23:55 2015
New Revision: 68658
URL:
http://svn.reactos.org/svn/reactos?rev=68658&view=rev
Log:
[SHIMGVW]
File navigation with left and right keys by Carlo Bramini
CORE-9608 #resolve #comment Committed, thx for help. ^^
Modified:
trunk/reactos/dll/win32/shimgvw/shimgvw.c
Modified: trunk/reactos/dll/win32/shimgvw/shimgvw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shimgvw/shimgvw.…
==============================================================================
--- trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] Mon Aug 10 10:23:55 2015
@@ -514,7 +514,7 @@
if (shiSettings.Maximized) ShowWindow(hwnd, SW_MAXIMIZE);
- hDispWnd = CreateWindowEx(0, _T("STATIC"), _T(""),
+ hDispWnd = CreateWindowEx(0, WC_STATIC, _T(""),
WS_CHILD | WS_VISIBLE,
0, 0, 0, 0, hwnd, NULL, hInstance, NULL);
@@ -534,6 +534,20 @@
ImageView_InitControls(hwnd);
return 0L;
}
+
+ case WM_KEYDOWN:
+ switch (LOWORD(wParam))
+ {
+ case VK_LEFT:
+ PostMessage(hwnd, WM_COMMAND, MAKEWPARAM(IDC_PREV, BN_CLICKED),
(LPARAM)NULL);
+ break;
+
+ case VK_RIGHT:
+ PostMessage(hwnd, WM_COMMAND, MAKEWPARAM(IDC_NEXT, BN_CLICKED),
(LPARAM)NULL);
+ break;
+ }
+ break;
+
case WM_COMMAND:
{
switch (wParam)