The message is sent after the visibility state has changed.
In this context, the terms "shown" or "hidden" refer to the state of the WS_VISIBLE style bit. This message is not sent when a window is obscured by other windows above it.