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-30

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“ShadingWinds.zip”, 18.1K)
Download Sample (“ShadingWinds.dmg”, 80.5K)



Description

This little application includes code to allow you to detect whether or not the Shell Window is "rolled up" by WindowShade. How do you do this? You check the window's contRgn. If the contRgn is empty, then the window is shaded. You'll note that the grafPort is unchanged by WindowShade, so if you need to save window dimensions, you can grab that information from the portRect.

Document Revision History

Date Notes
2003-01-30First 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.