Description
This function updates the Windows system palette to the proper palette for display of the image displayed in the Viewer.
-
Return Type
-
A Boolean value.
Whether the palette needed to be changed (other application windows should be invalidated if the palette was changed).
-
Syntax
-
object.UpdateDisplayPalette
The UpdateDisplayPalette Method syntax has these parts: |
| object | An expression evaluating to an object of type McView. | Remarks
This method of the Viewer for the ActiveWindow should be called when the application gets the WM_QUERYNEWPALETTE or WM_PALETTECHANGED messages. If the method indicates that the palette was changed, then all other open image workspaces should be invalidated so that they are displayed using the new palette.
|