oWnd := TWCapture():New( "OtraApp" )
hWnd := oWnd:hWnd
oWnd:Say(40, 20, "Hola que tal???", CLR_YELLOW, CLR_RED,, .T., .F.)
? getClassName(oWnd:hWnd)
local aControls := {}
hCtrl := GetWindow( hWnd, GW_CHILD )
do while hCtrl != 0
hCtrl = GetWindow( hCtrl, GW_HWNDNEXT )
if hCtrl != 0
aadd( aControls, hCtrl )
endif
enddo
while hCtrl != 0
hCtrl = GetWindow( hCtrl, GW_HWNDNEXT )
cClassName := Upper(GetClassName(hCtrl))
? cClassName, GetWindowText(hCtrl)
end
hCtrl := GetWindow( hWnd, GW_CHILD )
WHILE hCtrl != 0
cClassName := Upper(GetClassName(hCtrl))
IF cClassName = "EDIT"
? GetWindowText(hCtrl)
ENDIF
hCtrl = GetWindow( hCtrl, GW_HWNDNEXT )
END
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 48 guests