Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a Win-API function using FrontCall?

Status
Not open for further replies.

edmorris

Programmer
Jan 5, 2005
3
GB
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...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top