Ok, I've got a rectangle that goes 'backwards':

tlx:    56
tly:    158
width:  -8
height: 7

The cliping rectangle is:
tlx:    56
tly:    158
width:  30
height: 7

BUT, WinClipRectangle() doesn't change the width to 0. I imagine this
occurs b/c in most circumstances, you shouldn't be sending it 'backwards'
rectangles, but it seems that WinClipRectangle SHOULD still check for
this... now, I can easily fix this in my code, but it just happened that
this code was for a battery meter than ended up generating a NEGATIVE
percent when the PV was released. Now it draws a battery bar backwards
across other parts of the UI, where it should just draw NO bar, since the
author was smart enough to set up a clipping rectange for the border of the
bar.

Any thoughts?

Thanks,

Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293



Reply via email to