Hi,

I'm trying to do some good coding practices.  Well,
Palm recommends that I use #define
DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS so prevent
access to internals of structures.

Once I turned that on, I can't get the width of a
bitmap.  Here is the code.

pres = (BitmapPtr)MemHandleLock(hres);
xOffset = (15 - pres->width) / 2;  // chokes here

Is there a way to do this via the API?

Thanks,

Mike McCollister


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to