I use this code to set the focus to the Word-window when using Word and OLE in my FWH-application :
- Code: Select all Expand view
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.