dc.DrawRectangle(0, y, GetClientSize().x, m_heightRow);
bool startOnMonday = (GetWindowStyle() & wxCAL_MONDAY_FIRST) != 0;
- for ( size_t wd = 0; wd < 7; wd++ )
+ for ( int wd = 0; wd < 7; wd++ )
{
size_t n;
if ( startOnMonday )
wxLogDebug("painting week %d at y = %d\n", nWeek, y);
#endif
- for ( size_t wd = 0; wd < 7; wd++ )
+ for ( int wd = 0; wd < 7; wd++ )
{
if ( IsDateShown(date) )
{
case wxCAL_HITTEST_HEADER:
{
- wxCalendarEvent event(this, wxEVT_CALENDAR_WEEKDAY_CLICKED);
- event.m_wday = wday;
- (void)GetEventHandler()->ProcessEvent(event);
+ wxCalendarEvent eventWd(this, wxEVT_CALENDAR_WEEKDAY_CLICKED);
+ eventWd.m_wday = wday;
+ (void)GetEventHandler()->ProcessEvent(eventWd);
}
break;