#include "ltwrappr.h"
L_BOOL LImageViewerCell::HandlePalette (uMessage, wParam, uFlags)
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.
Value that indicate the message that will be sent to the viewer main window.
wParam value to be passed to the message.
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
TRUE | The function was successful |
FALSE | An error occurred. Refer to Return Codes. |
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:
WM_PALETTECHANGED
WM_PALETTEISCHANGING
WM_QUERYNEWPALETTE
WM_SYSCOLORCHANGE
In order to use this function, first set the uFlags parameter of the LImageViewer::Create function to CONTAINER_HANDLEPALETTE.
Required DLLs and Libraries
For an example, refer to the medical viewer classlib demo.