> > _declspec(dllexport) void doit(..., LPSTR* args, PPROSERVICES*
> ppsv)
> > {
> > ppsv->ResetFocus();
> > ShellExecute(NULL, "open", *(args+1), *(args+2), *(args+3),
> > SW_SHOWNORMAL );
> > }
>
>
> Sorry, I misread doit as do in my other reply.
>
> The ResetFocus is not needed in above. Or at least it should not
> be. ResetFocus is intended to reset the focus to the window that
> had the focus before a bar button was clicked for key sending etc.
>
My typing has got ahead of my thinking on this.
After writing above, I realized that I had it backwards: the
ResetFocus is what is needed because what you want is for Windows to
note the active window before the newly launched one as this is what
will get activated by Windows when the second window is closed.
I did a quick test and it seems to help. I will throw this into the
release candidate I will be posting later this evening; please try
and see how it works for you.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/