LImageViewerCell::HandlePalette

#include "ltwrappr.h"

L_BOOL LImageViewerCell::HandlePalette (uMessage, wParam, uFlags)

L_UINT uMessage;

/* message */

WPARAM wParam;

/* wParam value to be passed to the message */

L_UINT uFlags;

/* reserved for future use */

Provides an interface with the viewer to allow it to receive messages that inform the control that the palette has been changed.  This feature is available in version 16 or higher.

Parameter

Description

uMessage

Value that indicate the message that will be sent to the viewer main window.

wParam

wParam value to be passed to the message.

uFlags

Reserved for future use. Pass 0.

Returns

TRUE

The function was successful

FALSE

An error occurred. Refer to Return Codes.

Comments

This function is used to display images correctly when working on 8-bit viewing systems.

The allowed messages to be received through the parameter uMessage are:

In order to use this function, first set the uFlags parameter of the LImageViewer::Create function to CONTAINER_HANDLEPALETTE.

Required DLLs and Libraries

LTIVW

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:

LImageViewer::Create, LImageViewer::InsertCell, LImageViewerCell::SetCellBitmapList, LImageViewer::Destroy, Class Members

Topics:

Using the Medical Image Viewer Control

 

Image Viewer Functions: Using the Image Viewer

Example

For an example, refer to the medical viewer classlib demo.