Carbon


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
};

Constant descriptions

documentProc

Pre-Appearance document window (movable window with size box).

dBoxProc

Pre-Appearance modal dialog box.

plainDBox

Pre-Appearance modeless dialog box.

altDBoxProc

Pre-Appearance modeless dialog box with shadow.

noGrowDocProc

Pre-Appearance movable window with no size box or zoom box.

movableDBoxProc

Pre-Appearance movable modal dialog box.

zoomDocProc

Pre-Appearance movable window with size box and full zoom box.

zoomNoGrow

Pre-Appearance window with full zoom box and no size box.

floatProc

Pre-Appearance utility (floating) window with no size box or zoom box.

floatGrowProc

Pre-Appearance utility (floating) window with size box.

floatZoomProc

Pre-Appearance utility (floating) window with zoom box.

floatZoomGrowProc

Pre-Appearance utility (floating) window with size box and zoom box.

floatSideProc

Pre-Appearance utility (floating) window with side title bar and no size or zoom box.

floatSideGrowProc

Pre-Appearance utility (floating) window with side title bar and size box.

floatSideZoomProc

Pre-Appearance utility (floating) window with side title bar and zoom box.

floatSideZoomGrowProc

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 “Window Resource IDs A” and “Window Definition Variation Codes” for descriptions of possible values.

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)