Important: The information in this document is obsolete and should not be used for new development.
SetWindowPic
Use theSetWindowPicprocedure to establish a picture that the Window Manager can draw in a window's content region.
PROCEDURE SetWindowPic (theWindow: WindowPtr; Pic: PicHandle);
- theWindow
- A pointer to a window's window record.
- Pic
- A handle to the picture to be drawn in the window.
DESCRIPTION
TheSetWindowPicprocedure stores in a window's window record a handle to a picture to be drawn in the window. When the window's content region must be updated, the Window Manager then draws the picture or part of the picture, as necessary, instead of generating an update event.
- Note
- The
CloseWindowandDisposeWindowprocedures assume that any picture pointed to by the window record fieldwindowPicis stored as data, not as a resource. If your application uses a picture stored as a resource, you must release the memory it occupies by calling the Resource Manager'sReleaseResourceprocedure and set theWindowPicfield toNILbefore you close the window.![]()