Jump to content

WM REALIZEPALETTE

From EDM2
Revision as of 04:14, 18 April 2025 by Martini (talk | contribs) (Created page with "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== <pre> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ;''ulReserved'' (ULONG) - input: Reserved value, should be 0....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.