Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“WDEFPatch.zip”, 3.8K)
Download Sample (“WDEFPatch.dmg”, 61.5K)



Description

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.

Document Revision History

Date Notes
2003-01-14First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.