[comp.os.os2.programmer] Zero-size min. box for WinTrackRect?

pmj@roadnet.com (Peter M. Jansson) (04/24/91)

I recently wrote an application for which I used WinTrackRect
which was a big help, but I found that I could not
get the tracking box to reflect through the origin.  In my
application, the user could only move the tracking box along
the x-axis.  I want the user to be able to push button 1 and
drag the box either right or left.  I tried the _LEFT and _RIGHT
(I don't exactly remember the names of the constants) specifiers,
and both, and the behavior I was able to get was the box expanding
to the right, or to the left of the origin, but not being able
to cross the origin.  I think this is because I specified a
minimum x-axis size of 1, but when I tried zero, the function
behaved oddly.

Has anyone else run across this problem?  Does anyone have a
solution short of writing my own rubberbanding/mouse-tracking
routine?

Thanks,
        Pete.