Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook automation revisited
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00872313
Message ID:
00872797
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform