Compartir a través de


CMFCCustomColorsPropertyPage::Setup

Sets the color components of the property page.

void Setup(
   BYTE R,
   BYTE G,
   BYTE B
);

Parameters

Parameter

Description

[in] R

The red component of the RGB value.

[in] G

The green component of the RGB value.

[in] B

The blue component of the RGB value.

Remarks

This method updates the current RGB and the associated HLS (hue, lightness, and saturation) color values of the property page. The CMFCColorDialog::SetPageTwo method calls this method when the framework initializes the color dialog box or the user presses the left mouse button. For more information about CMFCColorDialog, see CMFCColorDialog Class.

Requirements

Header: afxcustomcolorspropertypage.h

See Also

Reference

CMFCCustomColorsPropertyPage Class

Hierarchy Chart

CMFCColorDialog Class

CMFCColorDialog::SetPageTwo