--- In [email protected], "dleidinger" <[EMAIL PROTECTED]> wrote:
>
> Hi Bruce,
> 
> could you please tell us (if it's not too difficult) how Powerpro 
> recognizes the desktop when using "Left Desk", "Middle Desk" 
and "Right 
> Desk". This works reliable. But defining a hotkey with c=progman 
> doesn't recognize the desktop, when switching to it with WIN+D.
> 
> Best regards Detlef
>
Here is the c code:
        hwndProg =FindWindow("Progman", NULL);
        vhwndWin95DeskTop3= FindWindowEx(hwndProg , 
NULL, "SHELLDLL_DefView",NULL);
        vhwndWin95DeskTop = FindWindowEx
(vhwndWin95DeskTop3 ,NULL, "SysListView32", NULL);
        vhwndWin95DeskTop2 = FindWindowEx
(vhwndWin95DeskTop3,NULL, "Internet Explorer_Server", NULL);
        vhwndDeskTopWindow = GetDesktopWindow();


Then if the window handle is any of the above variables, it is taken 
to be the desktop.

You could script this, but it may take a bit of work.  

Can you isolate the circumstances in which c=progman fails?  I see it 
does for win-d, but you should be able to add a case for that by 
checking for the class of the window (with exec windowinfo).  It 
looks like workerw on my machine, so maybe
c=progman,c=workerw
will work for you.  It does for me.

Reply via email to