Desktop windows

I have an app that has a popup status window.  I'd like the window to be able to stay on top, regardless of whether the main window is minimized or otherwise visible.  I'm halfway there with this code:

fstatus:=tfstatus.create(self);
application.normalizetopmosts;
SetWindowPos(fstatus.Handle, HWND_TOPMOST, 0,0,0,0,SWP_NOMOVE or SWP_NOSIZE or SWP_showwindow);
fstatus.Show;

This works if you click away from the main application, but if you minimize it the child window disappears too. I'd like to be able to keep it there the whole time.  
Any tips?
LVL 1
delphiexpertAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jecksomConnect With a Mentor Commented:
Hi delphiexpert!

   fstatus.ParentWindow:=getdesktopwindow;

Jecksom

0
 
delphiexpertAuthor Commented:
Excellent!  I thought it would be simple.  Have 50 points, along with my thanks (you have no idea how long I've been trying to work that one out!)


0
 
jecksomCommented:
hehe , just send it here and someone will solve problem for sure! :)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.