Click here for NewsObjects Overview
SetProfileBackColor Method (Headline Control)
Windows - Visual C++


Description
The SetProfileBackColor method sets the background color for the headlines associated with the specified profile.

Syntax
void SetProfileBackColor(LPCTSTR profileCode, unsigned long color);

The SetProfileBackColor syntax has these parts:

Part

Description

profileCode

A String containing a two-letter code representing the profile.

color

A value or constant that determines the background color for the headlines associated with the specified profile, as described in Remarks.

Remarks
The color can be either normal RGB (red, green, blue) or system default colors. Normal RGB colors are specified by using the Visual C++ color palette or by using the Visual C++ RGB or QBColor functions. System default colors are listed in the Visual C++ object library in the Object Browser. The user's choices will be substituted as specified in the Control Panel settings.

It is possible for the profile background color of a headline to conflict with the newswire background color. The NewsWiresHavePriority property provides a way to resolve this conflict. It is also possible to have conflicting profile background colors if a headline is associated with more than one profile. The SetProfilePriority method provides a way to resolve this conflict.

See Also: SetProfileForeColor RemoveProfileBackColor RemoveProfileColors SetNewsWireBackColor GetProfileBackColor NewsWiresHavePriority SetProfilePriority

Back to: Headline Methods