I use this code to set the focus to the Word-window when using Word and OLE in my FWH-application :
BringWindowToTop(FindWindow("OpusApp",NIL))Sometimes it works fine but sometimes the Word-button on the bar at the bottom of my screen starts flickering. I have to push on it before Word has actual the focus.
What is wrong with my code ? How can I set the focus to Word in an automatic way ?
I'm using Windows XP, Office 2003 or 2007, FWH 8.09 and xHarbour Builder Sept. 2008.
Thanks a lot in advance for any help.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773