|PATHDocumentation > Mac OS 8 and 9 > Human Interface Toolbox > Window Manager >|
Programming With the Mac OS 8.5 Window Manager
Your application should inform the Window Manager when a document has unsaved changes by calling the function SetWindowModified . When you do so, the Window Manager displays the document's proxy icon in a disabled state and prevents the user from dragging the proxy icon. Disabled proxy icons cannot be dragged because unsaved documents cannot be moved or copied in a manner predictable to the user. Listing 2-10 provides an example of how your application might call SetWindowModified to set the modified state of a window.
void MySetDocumentContentChanged( WindowDataPtr pData, Boolean changed )
pData->changed = changed;
SetWindowModified( (WindowPtr)pData, changed );