This is very helpful e.g. if you leave your desk and don't want to annoy your co-workers with random sounds or music from your computer or don't want music blasting out of your speakers, the next time you power on your pc during a presentation.
-### Screenshot ###
-
+### Screenshot s###
+
+
+
+
### Requirements ###
* Windows Vista or any newer version of Windows.
DWORD enabled = settings->QueryValue(SettingsKey::MUTE_ON_WLAN);
Button_SetCheck(GetDlgItem(hDlg, IDC_ENABLE_WIFI_MUTE),
enabled ? BST_CHECKED : BST_UNCHECKED);
-
+ Button_Enable(GetDlgItem(hDlg, IDC_IS_PERMITLIST), enabled);
enabled = settings->QueryValue(SettingsKey::MUTE_ON_WLAN_ALLOWLIST);
Button_SetCheck(GetDlgItem(hDlg, IDC_IS_PERMITLIST),
enabled ? BST_CHECKED : BST_UNCHECKED);
+
Button_Enable(GetDlgItem(hDlg, IDC_WIFI_EDIT), FALSE);
Button_Enable(GetDlgItem(hDlg, IDC_WIFI_REMOVE), FALSE);
}
case WM_COMMAND:
{
- if (LOWORD(wParam) == IDC_WIFI_LIST) {
+ if (LOWORD(wParam) == IDC_ENABLE_WIFI_MUTE) {
+ DWORD checked = Button_GetCheck(GetDlgItem(hDlg, IDC_ENABLE_WIFI_MUTE));
+ Button_Enable(GetDlgItem(hDlg, IDC_IS_PERMITLIST), checked == BST_CHECKED);
+ } else if (LOWORD(wParam) == IDC_WIFI_LIST) {
HWND hList = GetDlgItem(hDlg, IDC_WIFI_LIST);
if (HIWORD(wParam) == LBN_SELCHANGE || HIWORD(wParam) == LBN_SELCANCEL) {
bool entrySelected = (ListBox_GetCurSel(hList) != LB_ERR);
PUSHBUTTON "Remove",IDC_WIFI_REMOVE,179,103,56,16
PUSHBUTTON "Remove all",IDC_WIFI_REMOVEALL,179,123,56,16
LTEXT "Note: WLAN is not available on your device, so some options have been disabled.",IDC_STATIC_WLAN_NOT_AVAILABLE,7,179,228,18
- CONTROL "Enable ""WLAN Mute"".",IDC_ENABLE_WIFI_MUTE,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,26,228,14
- CONTROL "Mute workstation when WLAN network name is NOT in list\n(default: mute if in list).",IDC_IS_PERMITLIST,
- "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,41,228,18
+ CONTROL "Enable WLAN based muting",IDC_ENABLE_WIFI_MUTE,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,26,228,14
+ CONTROL "Mute workstation if the WLAN network name is NOT in the list\n(default: mute if it is in the list)",IDC_IS_PERMITLIST,
+ "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,20,41,215,18
LTEXT """WLAN Mute"" allows you to mute your workstation based on the name of the connected wireless network.",IDC_STATIC,7,7,228,19
END