CMonthCalCtrl::GetColor

Retrieves the color of an area of the month calendar control specified by nRegion.

COLORREF GetColor( 
   int nRegion  
) const;

Parameters

  • nRegion
    The region of the month calendar control from which the color is retrieved. For a list of values, see the nRegion parameter of SetColor.

Return Value

A COLORREF value specifying the color associated with the portion of the month calendar control, if successful. Otherwise, this member function returns -1.

Requirements

Header: afxdtctl.h

See Also

Reference

CMonthCalCtrl Class

Hierarchy Chart

CMonthCalCtrl::SetColor