Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Any) As Long
Private Const ICON_SMALL As Long = 0
Private Const WM_GETICON As Long = 127
Private Const WM_GETTEXT As Long = &HD
Private Const WM_GETTEXTLENGTH As Long = &HE
Private Const WM_SETICON As Long = 128
Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
Private Const SM_CYCAPTION As Long = 4 'Height of windows caption
Private Const SM_CXBORDER As Long = 5 'Width of no-sizable borders
Private Const SM_CYBORDER As Long = 6 'Height of non-sizable borders
Private Const SM_CXDLGFRAME As Long = 7 'Width of dialog box borders
Private Const SM_CYDLGFRAME As Long = 8 'Height of dialog box borders
Private Const SM_CYSMCAPTION As Long = 51
Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_HIDE As Long = 0
Private Const SW_SHOWNORMAL As Long = 1
Public Function GetTextByHandle(hWnd As Long) As String