> class to win.show (i mean, "win.show("c=EFTakeNoteMainWnd"))" does too.
> It is just win.show("c=EFTakeNoteMainWnd",1) that always makes the
> window to look unfocused.
> 
> Does the same win.show("c=EFTakeNoteMainWnd",1) that "window > show >
> whatever? 


The source from win.dll plugin, where  hh is the handle of the window and c the 
first char of the second ard (ints are stored as strings, remember). Its pretty 
straightforward 

if (c=='1')
{
if (IsIconic(hh))
ShowWindow(hh, SW_RESTORE);
else
ShowWindow(hh, SW_SHOW);
}

else if (c=='2')
{
ShowWindow(hh, SW_SHOW);
}

else if (c!='3')
(ppsv->Show)(hh);
                                
/* always call setforeground */
SetForegroundWindow(hh);


(ppsv->show) calls back to the PowerPro exe to the routine that does Window 
show processing which has a bunch of extra crud in it for cases like Delphi 
apps.  All the other routine calls above are standard Windows system routines.

As to why this works differently in your cases:  I don't know.

Reply via email to