--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
> I cannot explain the differences you see with do(), as internally 
> do ("x", "y")
> just ends up calling exactly the same ShellExecuteEx that a plain 
> command line of x y would run.

The difference with my "doit" function (now called "shellexecute" and
appearing below with new syntax including the "verb" being
user-spec'd) is that it calls ppsv->ResetFocus().  Without calling
ppsv->ResetFocus(), I still have the focus issues.  I would expect
PPro to be internally calling that function before ShellExecute() ...
doesn't it?  The PowerProToolBar class window grabs focus when a
button is pressed; it would be no surprise that, without intervention,
focus would return there if the launched app were immediately closed.

_declspec(dllexport) VOID shellexecute( SERVICE_ARGS ) {
    ppsv->ResetFocus();
    ShellExecute(NULL, *(szargs+1), *(szargs+2),
        *(szargs+3), *(szargs+4), SW_SHOWNORMAL );
}

P.S.  I'd also expect PPro to ResetFocus() if a "menu show" is
dismmissed by <Esc>; it doesn't seem to do so.

 - Vince






------------------------ 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/
 



Reply via email to