I need to make a form in an application always be the top z ordered form on a messy desktop, and explicitly set focus to an edit box in the form. When I call SetWindowPos it always brings the form to the topmost z position but the focus is set to the application's button on the taskbar which is flashing. I need that to stop and instead have focus appear in a waiting TEdit of the form.
Is there a work around for the behavior of SetWindowPos or another technique.
SWP_NOMOVE + SWP_NOSIZE)