Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 MFC 中的 CMonthCalCtrl 控件为特定日期着色。我认为这是不可能的,如果是这样,有一个技巧可以模拟类似的东西吗?
注意具体的日子,我不想整天涂色。因为要做到这一点,我得到了 SetColor 方法。
You cannot color individual days, only bold them. You use the CMonthCalCtrl::SetDayState() method for that purpose.
CMonthCalCtrl::SetDayState()