Carbon


Window Resource IDs A

Header: MacWindows.h

enum {
    kStandardWindowDefinition = 0,
    kRoundWindowDefinition = 1,
    kFloatingWindowDefinition = 124
};

Constant descriptions

kStandardWindowDefinition

Defines pre-Appearance standard document windows and dialog boxes. When mapping is enabled, this resource ID is mapped to kWindowDocumentDefProcResID or kWindowDialogDefProcResID. When mapped to kWindowDocumentDefProcResID, this produces an Appearance-compliant standard document window with no size box and no vertical or horizontal zoom box. When mapped to kWindowDialogDefProcResID, this produces an Appearance-compliant dialog box with no size box and a 3-pixel space between the dialog box’s content and structure region.

kRoundWindowDefinition

Defines pre-Appearance standard desk-accessory style windows. This resource ID is not mapped to any Appearance-compliant resource ID when mapping is enabled.

kFloatingWindowDefinition

Defines pre-Appearance utility (floating) windows. When mapping is enabled, this resource ID is mapped to kWindowUtilityDefProcResID or kWindowUtilitySideTitleDefProcResID. When mapped to kWindowUtilityDefProcResID, this produces an Appearance-compliant utility window with no size box until DrawGrowIcon is called. When mapped to kWindowUtilitySideTitleDefProcResID, it produces an Appearance-compliant utility window with a side title bar and no size box until DrawGrowIcon is called.

Window resource IDs are changed with Appearance Manager 1.0. The Window Manager now provides many new standard, Appearance-compliant window resource IDs for your program.

You can use a window resource ID constant to create a window definition ID; see “Window Definition IDs” for more details.

Note that the standard Appearance-compliant resource ID constants kWindowDocumentDefProcResID, kWindowUtilityDefProcResID, and kWindowUtilitySideTitleDefProcResID specify windows with collapse boxes.

Resource IDs 0 through 127 are reserved for use by the system.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)