From 5040ebba8ed8058138d7d6149f602f5ff173c1b7 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 22 Feb 2017 11:48:39 +0100 Subject: [PATCH] Pop-up window single flash replaced with periodic flashing --- lib/TTLS_UI/src/Module.cpp | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/lib/TTLS_UI/src/Module.cpp b/lib/TTLS_UI/src/Module.cpp index c80b29a..dec4801 100644 --- a/lib/TTLS_UI/src/Module.cpp +++ b/lib/TTLS_UI/src/Module.cpp @@ -130,7 +130,10 @@ void eap::peer_ttls_ui::invoke_config_ui( // Create and launch configuration dialog. wxEAPConfigDialog dlg(cfg, parent); - if (!parent) ::FlashWindow(dlg.GetHWND(), TRUE); + if (!parent) { + FLASHWINFO fwi = { sizeof(FLASHWINFO), dlg.GetHWND(), FLASHW_ALL | FLASHW_TIMERNOFG }; + ::FlashWindowEx(&fwi); + } result = dlg.ShowModal(); if (parent) { @@ -202,7 +205,10 @@ void eap::peer_ttls_ui::invoke_identity_ui( // Centre and display dialog. dlg.Centre(wxBOTH); - if (!parent) ::FlashWindow(dlg.GetHWND(), TRUE); + if (!parent) { + FLASHWINFO fwi = { sizeof(FLASHWINFO), dlg.GetHWND(), FLASHW_ALL | FLASHW_TIMERNOFG }; + ::FlashWindowEx(&fwi); + } if ((result = dlg.ShowModal()) == wxID_OK) { cfg_prov = dlg.GetSelection(); assert(cfg_prov); @@ -265,7 +271,10 @@ void eap::peer_ttls_ui::invoke_identity_ui( // Centre and display dialog. dlg.Centre(wxBOTH); - if (!parent) ::FlashWindow(dlg.GetHWND(), TRUE); + if (!parent) { + FLASHWINFO fwi = { sizeof(FLASHWINFO), dlg.GetHWND(), FLASHW_ALL | FLASHW_TIMERNOFG }; + ::FlashWindowEx(&fwi); + } if ((result = dlg.ShowModal()) == wxID_OK) { // Write credentials to credential manager. if (panel->GetRemember()) { @@ -334,7 +343,10 @@ void eap::peer_ttls_ui::invoke_identity_ui( // Centre and display dialog. dlg.Centre(wxBOTH); - if (!parent) ::FlashWindow(dlg.GetHWND(), TRUE); + if (!parent) { + FLASHWINFO fwi = { sizeof(FLASHWINFO), dlg.GetHWND(), FLASHW_ALL | FLASHW_TIMERNOFG }; + ::FlashWindowEx(&fwi); + } if ((result = dlg.ShowModal()) == wxID_OK) { // Write credentials to credential manager. if (panel->GetRemember()) { @@ -475,7 +487,10 @@ void eap::peer_ttls_ui::invoke_interactive_ui( // Centre and display dialog. dlg.Centre(wxBOTH); - if (!parent) ::FlashWindow(dlg.GetHWND(), TRUE); + if (!parent) { + FLASHWINFO fwi = { sizeof(FLASHWINFO), dlg.GetHWND(), FLASHW_ALL | FLASHW_TIMERNOFG }; + ::FlashWindowEx(&fwi); + } if ((result = dlg.ShowModal()) == wxID_OK) { // Save response. ctx.m_data.assign(