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.
L_BOOL LImageViewerCell::HandlePalette (uMessage, wParam, uFlags)
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.
|The function was successful
|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:
In order to use this function, first set the uFlags parameter of the LImageViewer::Create function to CONTAINER_HANDLEPALETTE.
For an example, refer to the medical viewer classlib demo.