How do I get the control of windows buttons or hide or disable these buttons in Windows 7 Operating System?


  • Hi,

    On Windows 7, Control Panel ->N/W & Internet->Manage Wireless Network, there are ‘Add’, ‘Remove’, ‘Move Up’, ‘Move Down’, ‘Adaptor properties, ‘Profile types’ and ‘Network and Sharing Center’ buttons. But on selection of item, these get enable or disable by operating system. So, how do I get the control of these buttons to enable / disable, show / hide them programmatically? We are using VS2008 and VC++ for development.

    I have tried various approaches.

    1. Using Shell32::FolderItem – This gives item in “FolderView” i.e. wireless connections.

    Is there any shell32 class, function or interface using which the handles of these buttons can be obtained?

    1. Using FindWindowEx
    2. Using CALLBACK EnumWindowsProc Method - This method populates all the children of a window.

    To show the difference between these, I have added two images below:

    Thursday, May 02, 2013 10:40 AM