bringing Word to the top of other windows (a problem in Vista?)

D

danielkim

Hello,

My automation program had been working in XP, but in Vista, it seems that my
normal code (which is to call Activate) does not bring the Word application
window to the front. It does flash in the taskbar, but it does not bring it
to the top of the other windows.

Does anyone know how to do this? (besides calling Activate)?

An article I found online
(http://www.code-magazine.com/article.aspx?quickid=0301081&page=3) writes
about the same problem, and suggests calling "BringWindowToTop", but I don't
know how to get the CWnd object from the word application that I'm
automating... so if your solution is for me to call BringWindowToTop, then I
would also appreciate if you could give me a clue to how to get the hWnd
handler or just CWnd object from Word.

Thank you,

--Daniel
 
D

danielkim

Anyone have any clue on this? I have been searching around for an answer,
but couldn't find any.

--daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top