diff options
Diffstat (limited to 'xfa/fwl/core/ifwl_monthcalendar.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_monthcalendar.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/xfa/fwl/core/ifwl_monthcalendar.cpp b/xfa/fwl/core/ifwl_monthcalendar.cpp index 69e7588245..43e90a23a5 100644 --- a/xfa/fwl/core/ifwl_monthcalendar.cpp +++ b/xfa/fwl/core/ifwl_monthcalendar.cpp @@ -118,9 +118,10 @@ CFX_WideString* GetCapacityForMonth(IFWL_ThemeProvider* pTheme, } // namespace IFWL_MonthCalendar::IFWL_MonthCalendar( + const IFWL_App* app, const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter) - : IFWL_Widget(properties, pOuter), + : IFWL_Widget(app, properties, pOuter), m_bInit(FALSE), m_pDateTime(new CFX_DateTime), m_iCurYear(2011), @@ -151,16 +152,9 @@ IFWL_MonthCalendar::~IFWL_MonthCalendar() { m_arrSelDays.RemoveAll(); } -FWL_Type IFWL_MonthCalendar::GetClassID() const { - return FWL_Type::MonthCalendar; -} - -FWL_Error IFWL_MonthCalendar::Initialize() { - if (IFWL_Widget::Initialize() != FWL_Error::Succeeded) - return FWL_Error::Indefinite; - +void IFWL_MonthCalendar::Initialize() { + IFWL_Widget::Initialize(); m_pDelegate = new CFWL_MonthCalendarImpDelegate(this); - return FWL_Error::Succeeded; } void IFWL_MonthCalendar::Finalize() { @@ -169,6 +163,10 @@ void IFWL_MonthCalendar::Finalize() { IFWL_Widget::Finalize(); } +FWL_Type IFWL_MonthCalendar::GetClassID() const { + return FWL_Type::MonthCalendar; +} + FWL_Error IFWL_MonthCalendar::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { if (bAutoSize) { |