Need to capture mouse events while holding down the button even if the mouse leaves the window. When the mouse leaves the client area of the window, need to pass control of the cursor back to Windows.