| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "xfa/fwl/core/cfwl_monthcalendar.h" | 7 #include "xfa/fwl/core/cfwl_monthcalendar.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 if (m_rtToday.Contains(pMsg->m_fx, pMsg->m_fy)) | 988 if (m_rtToday.Contains(pMsg->m_fx, pMsg->m_fy)) |
| 989 return; | 989 return; |
| 990 | 990 |
| 991 int32_t iOldSel = 0; | 991 int32_t iOldSel = 0; |
| 992 if (m_arrSelDays.GetSize() > 0) | 992 if (m_arrSelDays.GetSize() > 0) |
| 993 iOldSel = m_arrSelDays[0]; | 993 iOldSel = m_arrSelDays[0]; |
| 994 | 994 |
| 995 int32_t iCurSel = GetDayAtPoint(pMsg->m_fx, pMsg->m_fy); | 995 int32_t iCurSel = GetDayAtPoint(pMsg->m_fx, pMsg->m_fy); |
| 996 CFX_RectF rt; | 996 CFX_RectF rt; |
| 997 CFWL_DateTimePicker* pIPicker = static_cast<CFWL_DateTimePicker*>(m_pOuter); | 997 CFWL_DateTimePicker* pIPicker = static_cast<CFWL_DateTimePicker*>(m_pOuter); |
| 998 pIPicker->GetFormProxy()->GetWidgetRect(rt); | 998 pIPicker->GetFormProxy()->GetWidgetRect(rt, false); |
| 999 rt.Set(0, 0, rt.width, rt.height); | 999 rt.Set(0, 0, rt.width, rt.height); |
| 1000 if (iCurSel > 0) { | 1000 if (iCurSel > 0) { |
| 1001 DATEINFO* lpDatesInfo = m_arrDates.GetAt(iCurSel - 1); | 1001 DATEINFO* lpDatesInfo = m_arrDates.GetAt(iCurSel - 1); |
| 1002 CFX_RectF rtInvalidate(lpDatesInfo->rect); | 1002 CFX_RectF rtInvalidate(lpDatesInfo->rect); |
| 1003 if (iOldSel > 0 && iOldSel <= m_arrDates.GetSize()) { | 1003 if (iOldSel > 0 && iOldSel <= m_arrDates.GetSize()) { |
| 1004 lpDatesInfo = m_arrDates.GetAt(iOldSel - 1); | 1004 lpDatesInfo = m_arrDates.GetAt(iOldSel - 1); |
| 1005 rtInvalidate.Union(lpDatesInfo->rect); | 1005 rtInvalidate.Union(lpDatesInfo->rect); |
| 1006 } | 1006 } |
| 1007 AddSelDay(iCurSel); | 1007 AddSelDay(iCurSel); |
| 1008 if (!m_pOuter) | 1008 if (!m_pOuter) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 uint32_t dwSt, | 1101 uint32_t dwSt, |
| 1102 CFX_RectF rc, | 1102 CFX_RectF rc, |
| 1103 CFX_WideString& wsday) | 1103 CFX_WideString& wsday) |
| 1104 : iDay(day), | 1104 : iDay(day), |
| 1105 iDayOfWeek(dayofweek), | 1105 iDayOfWeek(dayofweek), |
| 1106 dwStates(dwSt), | 1106 dwStates(dwSt), |
| 1107 rect(rc), | 1107 rect(rc), |
| 1108 wsDay(wsday) {} | 1108 wsDay(wsday) {} |
| 1109 | 1109 |
| 1110 CFWL_MonthCalendar::DATEINFO::~DATEINFO() {} | 1110 CFWL_MonthCalendar::DATEINFO::~DATEINFO() {} |
| OLD | NEW |