Jump to content

MLM_SETBACKCOLOR

From EDM2
Revision as of 03:17, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:MLM_SETBACKCOLOR}} This message sets the background color. ==Syntax== <pre> param1 LONG lColor; Color.: param2 LONG lBgrndColor; Background color flag.: </pre> ==Parameters== ;lColor (LONG) - input: Color. ;lBgrndColor (LONG) - input: Background color flag. ::This flag can be set to one of the following: :::MLE_INDEX: Indexed (solid) colors. ::::For version 3, or lower, of the OS/2 operating system the default is MLE_ ::::INDEX=0;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message sets the background color.

Syntax

param1
LONG lColor;      /* Color. */

param2
LONG lBgrndColor; /* Background color flag. */

Parameters

lColor (LONG) - input
Color.
lBgrndColor (LONG) - input
Background color flag.
This flag can be set to one of the following:
MLE_INDEX: Indexed (solid) colors.
For version 3, or lower, of the OS/2 operating system the default is MLE_
INDEX=0; MLE does not support dithered colors.
MLE_RGB: Dithered colors.
For versions higher than version 3 of the OS/2 operating system, colors
default to the RGB mode.

Returns

lOldColor (LONG) - return
Color previously used.

Remarks

This message sets the color in which the MLE background is to be drawn, and updates the display as necessary. The color values are the same as those used by GpiSetColor.

Default Processing

The default window procedure takes no action on this message, other than to set lOldColor to 0.