GetWindowText

Window ››
Parent Previous Next

GetWindowText

Синтаксис

Function GetWindowText overload(byval hWin As HWND) As String

Function GetWindowText overload(byval hWin as HWND, byval buf as LPSTR, byval lenBuf as integer) as Integer

Описание

Функция возвращает текст заголовка окна.

Параметры

hWin - хендл окна

buf - указатель на буфер, куда будет возвращено значение

lenbuf - размер буфера

Платформы

Windows , Linux

Пример

#Include "window9.bi"
Dim As Integer event
var hwnd=OpenWindow("Окно 1",20,15,200,200)
CenterWindow(hwnd)
MessBox("",GetWindowText(hwnd))
Do
  event=WaitEvent()
  If Event=EventClose Then End
Loop

Результат

Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor