Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activating 'Open With' dialog after it's been launched
Message
From
07/08/2009 13:43:22
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01008829
Message ID:
01416801
Views:
43
>>Is there any generic, locale and OS indepedent way to invoke the "Open With" dialog and have it gain focus? (I'm using the SW_SHOWNORMAL constant from Winuser.h for my ShellExec call).
>>
>>Background:
>>
>>I'm using the code at the following URL to display the "Open With" dialog box.
>>http://support.microsoft.com/default.aspx?scid=kb;en-us;192352
>>
>>This code works great, except on my XP SP 2 system, the "Open With" dialog box is opened behind all my other windows. Even worse, this dialog does not place an icon in the task bar, so if you don't Alt+Tab look for it, you won't even know it's there! Confession: Spent some head scratching on that one! ;p
>>
>>News2News's has an interesting article on using "rundll32.exe" (see url below) but the article doesn't discuss the issue of bringing the Control Panel dialogs to the foreground.
>>http://news2news.com/vfp/?function=-1&example=391
>>
>>I believe(?) I could find the window by searching on window titlebars for "Open With", but then this solution won't port to other locales with a different translation for "Open With". I'm looking a generic solution.
>>
>>Thank you,
>>Malcolm
>
>Thanks, I was searching for exactly this thread.

I have been having trouble getting MS Word to come to the forefront when it is called by VFP 8.0
while doing a mailmerge. This only happens when VFP is running on Win Vista with Office 2007 installed.
If anyone has solved that problem, I would appreciate an answer. :)
Previous
Reply
Map
View

Click here to load this message in the networking platform