I made a popup similar to win7 battery counter. It behaves exactly the same as the built-in one, except when it is displayed using the notification icon, which is located on NotifyAreaOverflowWindow , and also notifies the redundant area that the window will automatically shut down after a while while it should be hidden only when my popup screen closes. The only difference that I was able to detect with spyxx , which overflows the window after a while, simply sends a WM_SHOWWINDOW wp:0 lp:0 message.
How can I prevent the overflow window from being automatically removed during active popup?

- Image 1: a test popup is shown after clicking the notification icon, which is in the overflow area + a couple of seconds of user inactivity.
- Image 2: The battery indicator pop-up is shown by tapping the notification icon, which is in the overflow area + 2 minutes of user inactivity.
source share