Page 1 of 1

problem oWnd

Posted: Wed Mar 19, 2008 6:07 pm
by Silvio
in a method there is a command

if GetClassName( GetParent( Self:hWnd ) ) != "TBAR"
oWnd = oWndFromhWnd( GetParent( Self:hWnd ) )
else
endif

How I can write to say that I must use this control into a dialog ?

Posted: Wed Mar 19, 2008 6:20 pm
by Antonio Linares
if Upper( oWnd:ClassName() ) == "TDIALOG"
...

Posted: Wed Mar 19, 2008 6:31 pm
by Silvio
thanks Antonio