Bring Window to top only within my app

I use SetWindowPos to make a progress dialog always the “top window”.

SetWindowPosAPI(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE + SWP_NOMOVE)

But I think that makes it to TopMost over all running apps on the computer. How do I make it topmost just within my app, so it’s not interfering with the keyboard queues (or other) running apps?

Redesign it as a container, and display the container within the window doing the work.

Have you tried setting your progress window’s Type property to Floating Window? That should keep it on top of all other windows in your app.

1 Like

Thanks for the responses so far. I was looking more for API changes to help, as the Floating Window doesn’t have that Plain Box look. But I’ll try that and see.