How to avoid the focus on Delphi application ?
        Posted  
        
            by Jean Alysson
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jean Alysson
        
        
        
        Published on 2010-03-16T11:19:45Z
        Indexed on 
            2010/03/16
            11:26 UTC
        
        
        Read the original article
        Hit count: 353
        
Hi there,
I need develop an application (Delphi) that never receive the focus, I use the DLL to display the video on second monitor (I found in Torrys Delphi - Dr.SAGURA Media Player v.1.0) that receive the focus every time play the video, how avoid this ?
I try : 
procedure TForm.WMActivate(var Msg: TWMActivate);
begin
WA_ACTIVE :begin
Msg.Result := 0;// cancel focus
end;
end;
Unsuccessful !
Thanks Jean Alysson
© Stack Overflow or respective owner