
WinQuerySwitchList should do it for you. Find the number of items,
pswblk->aswentry[i].swctl.hwnd                brackets
will give you a session (frame) window handle. Si?
!if (WinQueryFocus(HWND_DESKTOP) == hwndSession)
! could be use to determine if session has the focus.

Bernie "The Basque" Arruza  MTC-SXM AFM Dev.


User/SigFile