}
-void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth)
+void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth, XCCalendarMonthView *MonthViewPointer)
{
// Set the day
IsInMonth = SetupIsInMonth;
+ // Setup the month view pointer.
+
+ this->MonthViewPointer = MonthViewPointer;
+
}
\ No newline at end of file
void ResizeFrameEvent(wxSizeEvent &SizeEvent);
void DeselectOthersEvent(wxCommandEvent &DeselectEvent);
void UpdateTopIcons();
- void SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth);
+ void SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth, XCCalendarMonthView *MonthViewPointer);
DECLARE_EVENT_TABLE()
};
// Setup the control.
- CalendarDayItem->SetupControl((*DayIter).Day, (*DayIter).Month, (*DayIter).Year, (*DayIter).IsInMonth);
+ CalendarDayItem->SetupControl((*DayIter).Day, (*DayIter).Month, (*DayIter).Year, (*DayIter).IsInMonth, this);
CalendarDayList.push_back(CalendarDayItem);
WindowSizer->Add(CalendarDayItem, 1, wxEXPAND, 5);