Alert user during incoming connection

This commit is contained in:
grayson committed 2023-10-15 23:17:12 -05:00
1 parent 8f66edfa04
commit 417551a132
1 file changed
+5
+5
View File
@@ -291,6 +291,11 @@ namespace wc {
SetDlgItemText(dlg, IDC_STATICREMOTEINFO, app->m_inAddress.c_str()); SetDlgItemText(dlg, IDC_STATICREMOTEINFO, app->m_inAddress.c_str());
SendDlgItemMessage(dlg, IDC_EDITSCREENNAME, EM_SETCUEBANNER, TRUE, reinterpret_cast<LPARAM>(L"User")); SendDlgItemMessage(dlg, IDC_EDITSCREENNAME, EM_SETCUEBANNER, TRUE, reinterpret_cast<LPARAM>(L"User"));
//Get the attention of the user
FLASHWINFO fw = { .cbSize = sizeof(fw), .hwnd = GetParent(dlg), .dwFlags = FLASHW_TRAY | FLASHW_TIMERNOFG };
FlashWindowEx(&fw);
MessageBeep(MB_OK);
return TRUE; return TRUE;
} }