Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook automation revisited
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00872313
Message ID:
00872797
Vues:
24
>You can try to use SetForegroundWindow API #12720.

Sergey,

Thanks for the tip. I had actually done some research in the meantime and found that SetForegroundWindow may not work as expected w/Win2000 (i.e. bring window to the top w/focus, and flash in taskbar instead). I was able to find a code sample that made use of BringWindowToTop and ShowWindow to get me the desired result every single time.

Another interesting thing I found during the process: When attempting to locate the correct window via FindWindow, apparently the window title of an Outlook message item contains one extra space padded at the end. Couldn't quite grasp the reasoning for that one, but luckily I didn't have to waste too much time on it. ;)

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform