CMonthCalCtrl::GetColor

检索month calendar控件大小的颜色 nRegion指定的。

COLORREF GetColor(
   int nRegion 
) const;

参数

  • nRegion
    颜色检索month calendar控件的区域。 有关值列表,请参见 SetColor的 nRegion 参数。

返回值

指定颜色的 COLORREF 值与month calendar控件的部分,因此,如果成功。 否则,此成员函数返回-1。

要求

Header: afxdtctl.h

请参见

参考

CMonthCalCtrl选件类

层次结构图

CMonthCalCtrl::SetColor