if (EventListPresentationModel::IsSameDay(today, pointer) == true)
{
+ const Dimension dayTextSize(W_DAY, H_DAY);
Bitmap* pBitmapFocus = ResourceManager::GetBitmapN(IDB_YEAR_DAY_FOCUS);
pCanvas->DrawBitmap(drawRect, *pBitmapFocus);
delete pBitmapFocus;
- pTextDay = __pBitmapTodayText[pointer.GetDay() - 1];
+ EnrichedText* pDayText = new (std::nothrow) EnrichedText();
+ pDayText->Construct(dayTextSize);
+ pDayText->SetHorizontalAlignment(TEXT_ALIGNMENT_CENTER);
+ pDayText->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+
+ TextElement* pTextElement = new (std::nothrow) TextElement();
+ pTextElement->Construct(Integer::ToString(today.GetDay()));
+
+ Font font;
+ font.Construct(FONT_STYLE_PLAIN, FONT_SIZE_DAY);
+ pTextElement->SetFont(font);
+ pTextElement->SetTextColor(Color(COLOR_DAY_FOCUS));
+
+ pDayText->Add(*pTextElement);
+ pCanvas->DrawText(Point(drawRect.x,drawRect.y), *pDayText);
+ delete pDayText;
}
- if (pTextDay != null)
+ else if (pTextDay != null)
{
pCanvas->DrawBitmap(drawRect, *pTextDay);
}