From 1fb45608a8e5618f9b17b6935ea8201a60fe96f7 Mon Sep 17 00:00:00 2001
From: Roman Dadkov <romand@etersoft.ru>
Date: Tue, 3 Apr 2012 12:44:52 +0400
Subject: [PATCH] shell32: fixes Tab About (eterbug #6494)

---
 dlls/shell32/shell32.rc     |   19 ++++++++++---------
 dlls/shell32/shell32_main.c |    7 +++++++
 2 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/dlls/shell32/shell32.rc b/dlls/shell32/shell32.rc
index 4b873e1..17a02af 100644
--- a/dlls/shell32/shell32.rc
+++ b/dlls/shell32/shell32.rc
@@ -337,18 +337,19 @@ FONT 10, "MS Shell Dlg"
 {
  CONTROL "", IDC_ABOUT_LOGO_ETERSOFT, "Static", SS_BITMAP, 0, 0, 60, 60
  DEFPUSHBUTTON "OK", IDOK, 256, 194, 70, 16, WS_TABSTOP
- PUSHBUTTON "Wine &license...", IDC_ABOUT_LICENSE, 165, 194, 70, 16, WS_TABSTOP
- PUSHBUTTON "Etersoft &license", IDC_ABOUT_LICENSE_ETERSOFT, 165, 174, 70, 16, WS_TABSTOP
- LISTBOX IDC_ABOUT_LISTBOX, 13, 123, 137, 87, LBS_NOTIFY | WS_VSCROLL | WS_BORDER
- LISTBOX IDC_ABOUT_LISTETER, 13, 123, 137, 87, LBS_NOTIFY | WS_VSCROLL | WS_BORDER
+ PUSHBUTTON "Wine &license...", IDC_ABOUT_LICENSE, 175, 194, 70, 16, WS_TABSTOP
+ PUSHBUTTON "Etersoft &license", IDC_ABOUT_LICENSE_ETERSOFT, 175, 174, 70, 16, WS_TABSTOP
+ LISTBOX IDC_ABOUT_LISTBOX, 13, 123, 147, 87, LBS_NOTIFY | WS_VSCROLL | WS_BORDER
+ LISTBOX IDC_ABOUT_LISTETER, 13, 123, 147, 87, LBS_NOTIFY | WS_VSCROLL | WS_BORDER
  LTEXT "", IDC_ABOUT_STATIC_TEXT1, 35, 65, 137, 8
  LTEXT "Version %s", IDC_ABOUT_STATIC_TEXT2, 35, 73, 290, 8
  LTEXT "%s", IDC_ABOUT_STATIC_PRODUCT, 35, 89, 290, 8
- LTEXT "%s", IDC_ABOUT_STATIC_OWNER, 163, 114, 174, 10
- LTEXT "%s", IDC_ABOUT_STATIC_RESPONSIBLE, 163, 126, 174, 10
- LTEXT "%s", IDC_ABOUT_STATIC_REGNUM, 163, 138, 174, 10
- LTEXT "", IDC_ABOUT_STATIC_TEXT3, 163, 150, 137, 8
- LTEXT "", IDC_ABOUT_STATIC_LINK, 163, 158, 160, 8, SS_NOTIFY
+ LTEXT "%s", IDC_ABOUT_STATIC_OWNER, 173, 114, 184, 10
+ LTEXT "%s", IDC_ABOUT_STATIC_RESPONSIBLE, 173, 126, 184, 10
+ LTEXT "%s", IDC_ABOUT_STATIC_REGNUM, 173, 138, 184, 10
+ LTEXT "", IDC_ABOUT_STATIC_TEXT3, 173, 150, 137, 8
+ LTEXT "", IDC_ABOUT_STATIC_LINK, 173, 158, 160, 8, SS_NOTIFY
+
  LTEXT "", IDC_ABOUT_WINE_TEXT, 8, 107, 147, 1
  CONTROL "", IDC_ABOUT_TABDVL, "SysTabControl32", 0x0, 8, 108, 147, 102
 }
diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 202dcf5..9a0f8c7 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -1021,6 +1021,13 @@ static INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
             }
         }
     break;
+    case WM_SETCURSOR:
+        if (GetDlgCtrlID((HWND)wParam) == IDC_ABOUT_STATIC_LINK) {
+            SetCursor(LoadCursorW(0, (LPWSTR)IDC_HAND));
+            SetWindowLongW(hWnd, 0, TRUE);
+            return TRUE;
+        }
+        break;
     case WM_PAINT:
         {
             PAINTSTRUCT ps;
-- 
1.7.9.5
