Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_HSCROLL = &H114
Private Const WM_VSCROLL = &H115
Private Const SB_LINEDOWN = 1
Private Const SB_LINEUP = 0
Dim hWndClient As Long
hWndClient = FindWindowEx(Me.hwnd, 0, "MDIClient", "")
SendMessage hWndClient, WM_VSCROLL, SB_LINEUP, 0
SendMessage hWndClient, WM_VSCROLL, SB_LINEDOWN, 0
Сейчас этот форум просматривают: AhrefsBot, Google-бот, SemrushBot и гости: 193