Hello my friends and thank you for your quick suggestions.
My appologize for responding slowly. -I have been unavailable for 
some while.

Vladimir - Your suggestions definitely makes the window topmost if I 
also set the desktop as the window owner (instead of the application).
However, when I hide the extra button the button that is left still 
does not work properly. The maximize and minimize choices doesn't 
work.
Does anyone know how to correct this?

BR,
Lars 



--- In [email protected], "Vladimir Yushko" <[EMAIL PROTECTED]> 
wrote:
>
>  Hi!
> First hide the button created by Delphi for the Application:
> 
>   ShowWindow(Application.Handle, SW_HIDE);
>   SetWindowLong(Application.Handle, GWL_EXSTYLE,
>     GetWindowLong(Application.Handle, GWL_EXSTYLE) or
>     WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
>   ShowWindow(Application.Handle, SW_SHOW);
> 
> -- 
> Vladimir Yushko
> http://yarrowsoft.com/
> 
> ---
>


Reply via email to