Notepad2e
Notepad2e copied to clipboard
Flash window on Find wrap-around
Inspired by Notepad++: when searching with Don't wrap around disabled, when there was at least one match in the document and the next match (i.e. current match as a result of Find Next/Previous) is the first (Find Next) or last (Find Previous) - do FlashWindow() (or Ex) in such a way that only the window flashes (once), not the taskbar button.
This is intended to supplement the old feature of changing Search toolbar button (I can't find the associated issue, maybe there was none; see n2e_UpdateFindIcon(), n2e_ResetFindIcon()). That turned out to be unusable due to being far off and hard to notice. Flashing happens exactly in the same situations as the button changes so it might be possible to simply amend n2e_UpdateFindIcon().
Done. Single window flash added with default cursor blink rate (dwTimeout = 0).
Additional change: flash window when there is only a single match in the document.
I see this kind of flashing is totally unnoticeable, neither in Win10 nor in XP. The window title just becomes unfocused for about one second and then reverts. This is especially hard to notice when there is a message box shown before the flash (e.g. "Reached the beginning of the document") because the box causes unfocusing of the main window.
How does it look on your side? Does default flash count make it better?
Standard FlashWindow() does the same as current FlashWindowEx() with single blink:
Another test for 3 flashes with 0.5 default cursor blink rate:
