
Enabling/Disabling Program Manager Groups
Quote:
>I am writing an app that I would like to enable/disable program manager
>groups without restarting progman. I have seen a VB program do just this
>(LOCKSET.EXE), it seems to disable groups without restarting windows. The
>groups don't disapear, they just become 'non-clickable'. Anyone know how
>this is done??
(Caveats: haven't tried this.)
Perhaps you could use FindWindow to get the ProgMan group's hWnd and then
use EnableWindow to disable the window. The class name for ProgMan groups
is "PMGroup".
Declare Function FindWindow% Lib "User" (ByVal lpClassName As Any, ByVal
lpWindowName As Any)
Declare Function EnableWindow% Lib "User" (ByVal hWnd%, ByVal aBOOL%)
So then you'd just say something like:
retval = EnableWindow(FindWindow("PMGroup", "Games"), False)
Hope that helps (works). :)
--
_________________________________________________________
Robert Woodcock | Note: Your standard disclaimers apply. |
................| it can be quite a curse) - Plucky Duck |