Private Function HookProc(ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Dim hStatic1 As Long, hStatic2 As Long, hButton As Long, hFont As Long
HookProc = CallNextHookEx(hDlgHook, nCode, wParam, lParam)
If nCode = HCBT_ACTIVATE Then
hFont = CreateFont(15, 0, 0, 0, 500, 0, 0, 0, 0, 0, 0, 0, 0, FONT_FACE)
hStatic1 = FindWindowEx(wParam, 0&, "Static", vbNullString)
hStatic2 = FindWindowEx(wParam, hStatic1, "Static", vbNullString)
If hStatic2 = 0 Then hStatic2 = hStatic1
SendMessage hStatic2, WM_SETFONT, hFont, ByVal 1&
hButton = FindWindowEx(wParam, 0&, "Button", "OK")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&§ång ý"))
hButton = FindWindowEx(wParam, 0&, "Button", "&Yes")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&Cã"))
hButton = FindWindowEx(wParam, 0&, "Button", "&No")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&Kh«ng"))
hButton = FindWindowEx(wParam, 0&, "Button", "Cancel")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&Hñy bá"))
hButton = FindWindowEx(wParam, 0&, "Button", "&Retry")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&Thö l¹i"))
hButton = FindWindowEx(wParam, 0&, "Button", "&Ignore")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&Lê ®i"))
hButton = FindWindowEx(wParam, 0&, "Button", "&Abort")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("&Xua61t ra *.txt"))
hButton = FindWindowEx(wParam, 0&, "Button", "Help")
SendMessage hButton, WM_SETFONT, hFont, 0
SetWindowTextW hButton, StrPtr(UNC("Gióp ®ì"))
UnhookWindowsHookEx hDlgHook
End If
End Function