At 7:14 AM -0700 4/15/99, Daniel McCarty wrote:
>Does anyone know of a better (read: using API's) way?

Um... sorry about the inconsistent APIs.  The problem is that labels aren't
implemented as controls, they're just drawn by the form code itself.  In OO
terms, there's a lack of a common base class.

As to a better way -- use WinEraseRectangle on the rectangle returned from
FrmGetObjectBounds.

WinInvertChars will be more careful about just inverting the actual 'on'
bits in the characters, but it'll also take a lot longer.  If you can just
clear the whole rectangle, it'll go faster and be less code.

As a final note:  In general it's wise to avoid all the 'invert' calls,
since they don't necessarily make sense if you ever do anything besides
black and white.

                                --Bob


Reply via email to