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