NSetPalette
NSetPalette
Set a destination window's palette to source palette values short ncUpdates ; indicates how to update the window
palette associated with the window specified in the dstWindow parameter to the
palette specified by srcPalette. NSetPalette also records whether the window is to receive updates as a result of changes to its color environment. If you
want the window to be updated whenever its color environment changes, set
nCUpdates to the constant pmAllUpdates. If you are interested in updates only
when the window is the active window, set nCUpdates to the constant
pmFgUpdates. If you are interested in updates only when the window is not the
active window, set nCUpdates to the constant pmBkUpdates.
dstWindow is the window having its color environment changed.
srcPalette is the source palette from which the new color values are
obtained.
ncUpdates is a short indicating how to update the window
pmBkUpdates background updates only
pmFgUpdates foreground updates only
pmAllUpdates all updates
Returns: none
Notes: NSetPalette is available in system software versions 6.0.2 and later.