Click to See Complete Forum and Search --> : Is it default behavior when SetCapture?


Ali Imran
July 15th, 2006, 12:33 PM
Problem Description

NOTE : the child window (the control) is subclassed.

When I set a capture on a control (located on adialog). After setting capture, when mouse cursor goes on a location less than left or top coordinates of the parent dialog, respective LOWORD and /or HIWORD of lParam do not report minus value, rather than that, the values are some less than 65535 or equal to 65535.

Question

is it default bahaviour after the capture has been set, or is it something my code is doing wrong ?

regards

philkr
July 15th, 2006, 01:29 PM
Seems as if it is a signed/unsigned mismatch. Try casting the values to (short).

Ali Imran
July 15th, 2006, 01:47 PM
100% perfect answer.

thanks for your time.

stay well....