Jump to content

BKM SETNOTEBOOKCOLORS

From EDM2
Revision as of 18:34, 21 April 2025 by Martini (talk | contribs) (Created page with "This message sets the colors for the major tab text and background, the minor tab text and background, and the notebook page background. ==Syntax== <PRE> param1 ULONG ulColor; Color value to set.: param2 USHORT usBookAttr; Notebook region.: </PRE> ==Parameters== ;ulColor (ULONG) - Input : Color value to set. ;usBookAttr (USHORT) - Input : Notebook region whose color is to be set. Valid values are: ::BKA_BACKGROUNDPAGECOLOR or BKA_BACKGROUNDPAGECOLO...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message sets the colors for the major tab text and background, the minor tab text and background, and the notebook page background.

Syntax

param1
ULONG ulColor;    /* Color value to set. */

param2
USHORT usBookAttr; /* Notebook region. */

Parameters

ulColor (ULONG) - Input
Color value to set.
usBookAttr (USHORT) - Input
Notebook region whose color is to be set. Valid values are:
BKA_BACKGROUNDPAGECOLOR or BKA_BACKGROUNDPAGECOLORINDEX: Page background. This color is initially set to SYSCLR_PAGEBACKGROUND.
BKA_BACKGROUNDMAJORCOLOR or BKA_BACKGROUNDMAJORCOLORINDEX: Major tab background. This color is initially set to SYSCLR_PAGEBACKGROUND.
BKA_BACKGROUNDMINORCOLOR or BKA_BACKGROUNDMINORCOLORINDEX: Minor tab background. This color is initially set to SYSCLR_PAGEBACKGROUND.
BKA_FOREGROUNDMAJORCOLOR or BKA_FOREGROUNDMAJORCOLORINDEX: Major tab text. This color is initially set to SYSCLR_WINDOWTEXT.
BKA_FOREGROUNDMINORCOLOR or BKA_FOREGROUNDMINORCOLORINDEX: Minor tab text. This color is initially set to SYSCLR_WINDOWTEXT.

Returns

rc (BOOL) - returns
Success indicator:
TRUE: Colors were successfully set.
FALSE: Unable to set colors. Returned if an invalid notebook attribute is specified for the usBookAttr parameter.

Remarks

The notebook background, border, selection cursor, and status line text colors are mapped to system presentation attributes. See WM_PRESPARAMCHANGED (in Notebook Controls) for information about setting the color of these regions.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it other than to return FALSE.