updated message passing for WM_USER to use wparam as msg type