[comp.sys.mac.programmer] HiLite Mode Help wanted

rlm@naucse.cse.nau.edu (Rich Muller) (01/24/91)

Inside mac says (V-61) that I should use highlighting
instead of inversion to select objects.  Fine.

In a window created with

gWindow = getNewCWindow()

I have the code

InvertRect(&gHTR);

which works fine except that it simply (surprise!!)
inverts the rectangle.  Preceding it with

BitClr((Ptr)HiliteMode, pHiliteBit);

which is what I _think_ IM says to do, produces a crash.

Actually, IM says to do  BitClr(Ptr(HiliteMode, pHiliteBit));
which can't be right, since BitClr requires two arguments.

Is my Pascal-to-C translation off?  Do I need to do some other magic
before using BitClr()?

Pls respond by e-mail, since I don't read this list regularly.

And thanks!!

Rich Muller

rlm@naucse.cse.nau.edu