Carbon


Window Class Constants

Header: MacWindows.h

enum WindowClass {
    kAlertWindowClass = 1,
    kMovableAlertWindowClass = 2,
    kModalWindowClass = 3,
    kMovableModalWindowClass = 4,
    kFloatingWindowClass = 5,
    kDocumentWindowClass = 6,
    kDesktopWindowClass = 7,
    kUtilityWindowClass = 8,
    kSheetWindowClass = 11,
    kAllWindowClasses = -1
};

Constant descriptions

kAlertWindowClass

Identifies an alert box window.

kMovableAlertWindowClass

Identifies a movable alert box window.

kModalWindowClass

Identifies a modal dialog box window.

kMovableModalWindowClass

Identifies a movable modal dialog box window.

kFloatingWindowClass

Identifies a window that floats above all document windows. If your application assigns this constant to a window and calls the function InitFloatingWindows, the Window Manager ensures that the window has the proper floating behavior. Supported with Mac OS 8.6 and later.

kDocumentWindowClass

Identifies a document window or modeless dialog box window. The Window Manager assigns this class to pre–Mac OS 8.5 Window Manager windows.

kDesktopWindowClass
kUtilityWindowClass
kSheetWindowClass
kAllWindowClasses

The WindowClass constants categorize windows into groups of like types. The grouping of windows facilitates the appropriate display (that is, both the look and the front-to-back ordering) and tracking of windows.

You can define a window’s class using the function CreateNewWindow and obtain a window’s class using the function GetWindowClass. However, a window’s class cannot be altered once the window has been created.

Note that the ordering of the constants in the WindowClass enumeration reflects the window classes’ relative front-to-back display order.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)