![]() |
Window Definition Message Constants |
Header: MacWindows.h |
enum { kWindowMsgDragHilite = 9, kWindowMsgModified = 10, kWindowMsgDrawInCurrentPort = 11, kWindowMsgSetupProxyDragImage = 12, kWindowMsgStateChanged = 13, kWindowMsgMeasureTitle = 14 };
Redraw the windows structure region to reflect the windows validity as a drag-and-drop destination. The Window Manager passes an accompanying Boolean value in your window definition functions param parameter. If the value passed is true, this indicates that the windows structure region should be highlighted. If the value passed is false, the structure region should be unhighlighted. Your window definition function should return 0 as the function result.
Track the windows modification state. The Window Manager sends this message when the function
Draw the windows frame in the current graphics port. Other than restricting drawing to the current port, this message is similar to the preMac OS 8.5 Window Manager window definition message constant wDraw.
Create the image of the windows proxy icon that the Drag Manager uses to represent the icon while it is being dragged. When your application calls the function SetupWindowProxyDragImageRec
in the param parameter. Your window definition function is responsible for setting the contents of the structure to contain the data describing the proxy icons drag image. Your window definition function should return 0 as the function result.
Be informed that some aspect of the windows public state has changed. The Window Manager passes this message in your window definition functions message parameter and an accompanying flag in the param parameter that indicates what part of the windows state has been altered. This message is simply a notification messageno response by the window definition function is required. Your window definition function should return 0 as the function result. The kWindowMsgStateChanged message is sent after the windows internal data has been updated, but before any redraw occurs onscreen. A window definition function should not redraw the window frame in response to this message. If it is necessary to redraw the window frame, the Window Manager notifies the window definition function with a wDraw message. See
Measure and return the ideal title width. The Window Manager passes this message in the window definition functions message parameter and an accompanying pointer to a structure of type
With the Mac OS 8.5 Window Manager, the Window Manager may pass one of these constants in the message parameter of your window definition function to specify the action that your function must perform. For descriptions of the feature bits that correspond to these messages, see
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)