Has anyone sucessfully called a Win API function using FrontCall?
in concept, here is what I mean:
define hwnd, ret integer
call ui.Interface.frontCall("user32","FindWindow",["","My Window Title"],[hwnd])
if hwnd is not null and hwnd > 0 then
call ui.Interface.frontCall("user32","SetWindowPos",[hwnd,0,0,0,0,0,3],[ret])
end if
which simply brings a window to the top based on it's title. I realize I might have to write my own C wrapper functions in order to do this, but has anyone done this directly thru 4gl code?
thanks in advance...
in concept, here is what I mean:
define hwnd, ret integer
call ui.Interface.frontCall("user32","FindWindow",["","My Window Title"],[hwnd])
if hwnd is not null and hwnd > 0 then
call ui.Interface.frontCall("user32","SetWindowPos",[hwnd,0,0,0,0,0,3],[ret])
end if
which simply brings a window to the top based on it's title. I realize I might have to write my own C wrapper functions in order to do this, but has anyone done this directly thru 4gl code?
thanks in advance...