ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >
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:
|
Q How can I access the "Set Utilities Pattern"
pattern? (This pattern is set by holding down the option key in the
Desktop Patterns Control Panel.) A This control panel uses resources of type 'ppat' to store this pattern. The `ppat' resource is stored in the System file in your System Folder; the desktop pattern has an ID of 16 and the utilities pattern has an ID of 42. Since this is not documented, it could be subject to change at any moment. You should be careful when using this. A snippet of code is included here to show you how you can get to these two `ppat' resources. PixPatHandle ppatHandle; ppatHandle = (PixPatHandle) GetPixPat(42); if (ppatHandle != NULL) { SetRect(&destRect;, 15, 125, 197, 164); FrameRect(&destRect;); FillCRect(&destRect;, ppatHandle); DisposePixPat(ppatHandle); }
Updated: 27-September-96 |
|