GetWindowPic
GetWindowPic Obtain Handle of window picture, if any
#include <Windows.h> Window Manager
WindowPtr theWindow ; window of interest
returns handle to Picture defining window contents; 0=none
GetWindowPic returns a PicHandle of the picture that defines the contents
of a window. In most cases, it returns NIL, indicating that no such picture
exists.
Returns: the value found in the windowPic field of theWindow 's
WindowRecord. A non-NIL value indicates that a previous call to
SetWindowPic has defined such a picture.

Notes: This routine can be used as part of a speed-optimization technique you can
use to avoid time-consuming updates on windows that do not change, or
windows that have been saved temporarily as a bit image.
Use SetWindowPic to install a picture defining a window. See that topic
for related information.