LRasterPaintWindow::HandlePalette

#include "ltwrappr.h"

L_BOOL LRasterPaintWindow::HandlePalette(uMsg, wParam, lParam)

L_UINT uMsg;

/* window message */

WPARAM wParam;

/* first parameter of the window message */

LPARAM lParam;

/* second parameter of the window message */

Call this function to let the DigitalPaint window automatically handle the palette based on the specified message.

Parameter

Description

uMsg

The window message.

wParam

The first parameter of the window message.

lParam

The second parameter of the window message.

Returns

TRUE

The paint window was repainted.

FALSE

The paint window was not repainted.

Comments

This function works with the following Windows messages:

WM_PALETTECHANGED

WM_QUERYNEWPALETTE

WM_SYSCOLORCHANGE

This function will respond to these messages by automatically handling palette issues properly.

You are responsible for calling this function with the appropriate window message to let the class object's window respond to palette changes.

Required DLLs and Libraries

LTPNT
LTDIS
LTFIL
LTAUT
LTCON
LTTLB

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LRasterPaintWindow::SetWndHandle, Class Members

Example

For an example, refer to LRasterPaintWindow::SetWndHandle.