The WM_QUERYNEWPALETTE message informs a window that it is about to receive the keyboard focus, giving the window the opportunity to realize its logical palette when it receives the focus.
WM_QUERYNEWPALETTE
This message has no parameters.
If the window realizes its logical palette, it must return TRUE; otherwise, it must return FALSE.
WM_PALETTECHANGED, WM_PALETTEISCHANGING
See: