05-19-2024, 04:35 PM
(05-19-2024, 03:24 PM)madscijr Wrote:(05-17-2024, 11:27 PM)SMcNeill Wrote: https://qb64phoenix.com/qb64wiki/index.p...ost_WindowFantastic!
Now once the program window is set to always be in the foreground, how would you change it back to a normal window?
I tried modifying my programs so
a window stays on top (HWND_TOPMOST) when the user presses the "a" key,
and goes back to normal (HWND_NOTOPMOST) when they press "b",
but it doesn't seem to be working...
But your programs are fine.
If you press key B the window is no longer in the foreground and with A it is in the front again.
All you have to do is click on it with the mouse to give the program focus again, and then press the corresponding keys.
And the second program should not be in the same place as the first.
The function brings the window to the foreground, but does not hold the focus.