Jump to content

WM REALIZEPALETTE

From EDM2

This message is sent to an application whenever changes have been made to the display hardware physical color table as a result of another application calling WinRealizePalette.

Syntax

param1
    ULONG ulReserved; /* Reserved value, should be 0. */

param2
    ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

ulReserved (ULONG) - input
Reserved value, should be 0.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

ulReserved (ULONG) - returns
Reserved value, should be 0.

Remarks

The application should call WinRealizePalette if it has a palette, or pass it on to the default window procedure if it does not.

If the return value from WinRealizePalette is greater than 0, the application should invalidate its window to cause a repaint using the newly-realized palette.

Default Processing

The default window procedure calls WinRealizePalette with a NULL parameter. This causes the default palette to be realized. If the return value from WinRealizePalette is greater than 0, the default window procedure invalidates the window, causing it to be repainted with the newly-realized palette.