![]() |
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 };
Identifies an alert box window.
Identifies a movable alert box window.
Identifies a modal dialog box window.
Identifies a movable modal dialog box window.
Identifies a window that floats above all document windows. If your application assigns this constant to a window and calls the function
Identifies a document window or modeless dialog box window. The Window Manager assigns this class to preMac OS 8.5 Window Manager windows.
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 windows class using the function CreateNewWindow and obtain a windows class using the function GetWindowClass
. However, a windows 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)