Enabling/Disabling Program Manager Groups 
Author Message
 Enabling/Disabling Program Manager Groups

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

Thanxs.

Rocky Parker



Sun, 25 Jan 1998 03:00:00 GMT  
 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 |



Sun, 25 Jan 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Control Panel/System/Device Manager tab Disable/Enable

2. Removing Icons and Program Groups from Program Manager

3. Deleting Program Group Icons from Program Manager

4. Enable/disable group

5. How can i suppress Enable/Disable Macros in program using VB

6. Need Help Creating Groups within Program Manager

7. Program Manager's group files

8. Creating Personal Program Manager Groups via DDE

9. DDEML.DLL, and Adding Icons to a *Selected* group in Program Manager

10. Removal of Program Manager Groups and Icons?

11. Adding Group To Program Manager

12. Creating Program Manager Groups

 

 
Powered by phpBB® Forum Software