How to use SetWindowPos API call?

Quote
Ashley Bass wrote:

> I need to have a little form appear on top of all windows and stay
> there regardless of what app I'm working in.

> I'v tried the below code but can't get the thing to stay on top.

> in form3's oncreate event:

> SetWindowPos(FindWindow('', 'Form3'), HWND_TOPMOST, 0, 0, 0, 0,
> SWP_NOSIZE);

> While the form loads, it does not stay on top of anything other than
> my applicaton (it is set as fstayontop).

> Any ideas or suggestion are appreciated.

> Ashley Bass

Try setting the form style to fsStayOnTop.

Joe

--
Joe C. Hecht
Borland Delphi Developer Support Group
http://www.borland.com