On Wed, 26 Sep 2001, Joe Programmer wrote:
> My question is: if I have #define-d
> DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS at the top of my program, is
> there a clean way to allow access again just for the section of code
> where I need to access the usable bit of the object I want to hide?
Short answer: Don't waste your time trying.
Use CtlSetUsable to set/clear the usable bit. Accessing the structure
directly isn't a supported method, anyway, and could break things for you
down the road.
----------------------------------------------------------------------
Brian Smith // [EMAIL PROTECTED] // http://www.arthurian.nu/
Software Developer // Gamer // Webmaster // System Administrator
A Black Hole: What happens when God divides by zero.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/