Alert user during incoming connection

This commit is contained in:
Grayson Riffe 2023-10-09 14:09:52 -05:00
parent 8f66edfa04
commit 417551a132

@ -291,6 +291,11 @@ namespace wc {
SetDlgItemText(dlg, IDC_STATICREMOTEINFO, app->m_inAddress.c_str());
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;
}