Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
WDEFPatch
Last Revision: | Version 1.0, 2003-01-14 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon |
This snippet shows how you can add a simple extra part to an existing WDEF and be able to do hit testing on the part via FindWindow(). The extra part in this case is on the right side of the title bar, just to the left of where the zoombox would be. When hit, it inverts the window. Previous version stomped the variation code bits containing the zoom box data. Fixed this by adding some code to mask these bits in if we're in 24-bit mode. Also, previous version assumed a5 would be set-up inside WDEF code, since it called StripAddress which is glue in Think C. Fixed by adding a5 stuff to patch code.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14