NSetPalette
NSetPalette Set a destination window's palette to source palette values
#include <Palettes.h> Palette Manager
void NSetPalette( dstWindow, srcPalette, ncUpdates );
WindowPtr dstWindow ; pointer to a window
PaletteHandle srcPalette ; handle to the source color palette
short ncUpdates ; indicates how to update the window
NSetPalette is identical to SetPalette, except that the nCUpdates
parameter is a short rather than a Boolean value. NSetPalette changes the
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
pmNoUpdates no updates
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.