![]() |
Window Definition IDs |
Header: MacWindows.h |
enum { documentProc = 0, dBoxProc = 1, plainDBox = 2, altDBoxProc = 3, noGrowDocProc = 4, movableDBoxProc = 5, zoomDocProc = 8, zoomNoGrow = 12, floatProc = 1985, floatGrowProc = 1987, floatZoomProc = 1989, floatZoomGrowProc = 1991, floatSideProc = 1993, floatSideGrowProc = 1995, floatSideZoomProc = 1997, floatSideZoomGrowProc = 1999 };
Pre-Appearance document window (movable window with size box).
Pre-Appearance modal dialog box.
Pre-Appearance modeless dialog box.
Pre-Appearance modeless dialog box with shadow.
Pre-Appearance movable window with no size box or zoom box.
Pre-Appearance movable modal dialog box.
Pre-Appearance movable window with size box and full zoom box.
Pre-Appearance window with full zoom box and no size box.
Pre-Appearance utility (floating) window with no size box or zoom box.
Pre-Appearance utility (floating) window with size box.
Pre-Appearance utility (floating) window with zoom box.
Pre-Appearance utility (floating) window with size box and zoom box.
Pre-Appearance utility (floating) window with side title bar and no size or zoom box.
Pre-Appearance utility (floating) window with side title bar and size box.
Pre-Appearance utility (floating) window with side title bar and zoom box.
Pre-Appearance utility (floating) window with side title bar, size box, and zoom box.
Window definition IDs are changed with Appearance Manager 1.0. The Window Manager now provides many new, standard, Appearance-compliant window types.
Your application typically supplies a window definition ID to a resource of type WIND or to a window-creation function to specify which window definition function to use in creating the window. A variation code may also be used to describe variations of the same basic window.
The window definition ID is an integer that contains the resource ID of the window definition function in its upper 12 bits and a variation code in its lower 4 bits. For a given resource ID and variation code, the window definition ID is derived as follows:
window definition ID = (16 x resource ID) + variation code.
See
If you wish to create a custom window, you can write your own window definition function. For an example, see WindowDefProcPtr.
The window definition IDs for dialog boxes and utility (floating) windows pertain to the appearances of these windows only, not their behaviors. For example, if you want a utility window to have the proper behavior, that is, float, your application must provide for it.
When mapping is enabled, standard pre-Appearance window definition function IDs will be mapped to their Appearance-compliant equivalents.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)