PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → notification for windev app desktop similar to SysIconBadge()
notification for windev app desktop similar to SysIconBadge()
Débuté par JESUS, 06 aoû. 2017 19:07 - 1 réponse
Membre enregistré
8 messages
Posté le 06 août 2017 - 19:07
Good day to everyone.

I need to send notification to the user when the application is not running in foreground to alert about activity in the application, I would like to do it as in Skype already manages to make the icon is flashing through the library user32.dll,

_FLASHWINFO is Structure
cbSize is unsigned int
hWnd is int // A handle to the window to be flashed.
dwFlags is int // The flash status
uCount is unsigned int // Numero de flasheo, 0 infinito.
dwTimeout is int // Retardo en milisegundos
END


FLASHW_TRAY is int = 0x2
FLASHW_TIMERNOFC is int = 0xC
Pfwi is _FLASHWINFO
Pfwi:cbSize = Dimension(Pfwi)
Pfwi:dwFlags = FLASHW_TRAY + FLASHW_TIMERNOFC
Pfwi:dwTimeout = 0
Pfwi:hWnd = Handle()
Pfwi:uCount = 0
AppelDLL32("user32", "FlashWindowEx", &Pfwi)




But also wants to show me in A balloon in the same icon the number of notifications, any ideas?






--
Jesus Madrigal
JESMAD Soluciones TICS
Posté le 07 août 2017 - 17:53
Hi Jesus,

sysIconAdd to create the icon in the systray, sysiconmodify to change
the icon for one with a number on it (more than 9=9+), and toastdisplay
sould do all you described

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 8/6/2017 à 11:07 AM, JESUS a écrit :
Good day to everyone.

I need to send notification to the user when the application is not
running in foreground to alert about activity in the application, I
would like to do it as in Skype already manages to make the icon is
flashing through the library user32.dll,

_FLASHWINFO is Structure
cbSize is unsigned int
hWnd is int // A handle to the window to be flashed.
dwFlags is int // The flash status
uCount is unsigned int // Numero de flasheo, 0 infinito.
dwTimeout is int // Retardo en milisegundos
END


FLASHW_TRAY is int = 0x2 FLASHW_TIMERNOFC is int = 0xC Pfwi is _FLASHWINFO
Pfwi:cbSize = Dimension(Pfwi)
Pfwi:dwFlags = FLASHW_TRAY + FLASHW_TIMERNOFC
Pfwi:dwTimeout = 0
Pfwi:hWnd = Handle()
Pfwi:uCount = 0
AppelDLL32("user32", "FlashWindowEx", &Pfwi)




But also wants to show me in A balloon in the same icon the number of
notifications, any ideas?







--
Jesus Madrigal
JESMAD Soluciones TICS