Happens when a dialog or message box opens while your window has captured the mouse. Typically you would release the capture of the mouse, and abort any operation you were doing that required mouse capture.
Return
Return no value to let the operating system cancel internal processing of standard scroll bar input, cancel internal menu processing, and release the mouse capture.
Notes
See also CAPTURECHANGED.