WM_SETVISIBLE This message is sent to a window when it's "visibility" status is changed. This message is generated when you call ShowWindow()or DestroyWindow(). Parameters wParam is non-zero if the window is becoming visible, and zero if the window is being hidden. lParam is not used.