CMFCCustomColorsPropertyPage Class

Represents a property page that can select custom colors in a color dialog box.

class CMFCCustomColorsPropertyPage : public CPropertyPage

Members

Public Constructors

Name

Description

CMFCCustomColorsPropertyPage::CMFCCustomColorsPropertyPage

Default constructor.

Public Methods

Name

Description

CMFCCustomColorsPropertyPage::CreateObject

Used by the framework to create a dynamic instance of this class type.

CMFCCustomColorsPropertyPage::GetThisClass

Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type.

CMFCCustomColorsPropertyPage::Setup

Sets the color components of the property page.

Remarks

The CMFCColorDialog class uses this class to display the custom color property page. For more information about CMFCColorDialog, see CMFCColorDialog Class.

Example

The following example demonstrates how to construct a CMFCCustomColorsPropertyPage object and set the color components of the property page.

    CMFCCustomColorsPropertyPage* colourSheet = new CMFCCustomColorsPropertyPage();
    colourSheet->Setup(0,0,255);

Inheritance Hierarchy

CObject

   CCmdTarget

      CWnd

         CDialog

            CPropertyPage

               CMFCCustomColorsPropertyPage

Requirements

Header: afxcustomcolorspropertypage.h

See Also

Reference

Hierarchy Chart

CMFCColorDialog Class

CMFCStandardColorsPropertyPage Class

Other Resources

MFC Classes