--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote: > > > > > _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. > > But if you are launching a new app, then doing that is not needed.
(See my other post.) It may not be needed, but it seems to guarantee that if the launched app is immediately closed, focus goes back to the app that had it before the button was pushed. As for ShellExecuteEx(), I'm quite familiar with it. What sort of experimenting would you want done? - Vince ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/
