With overlays such as this or this becoming popular losing focus on the game whenever you press something on the overlay is a big annoyance, so simply adding the WS_EX_NOACTIVATE flag in the CreateParams stops the overlay from gaining focus while still being able to manipulate it.
With overlays such as this or this becoming popular losing focus on the game whenever you press something on the overlay is a big annoyance, so simply adding the
WS_EX_NOACTIVATE
flag in theCreateParams
stops the overlay from gaining focus while still being able to manipulate it.