}
- if (groupCount != 0 && __topBottomItemEnabled == true)
+ if (__pPm->GetAllOriginalEventCount() != 0 && __topBottomItemEnabled == true)
{
groupCount += TOP_BOTTOM_GROUP_ITEM_COUNT;
}
if (groupIndex == 0)
{
- DateTime startDate = __pPm->GetDateTimeFromGroupIndex(0);
+ bool bNoevent = false;
+ DateTime startDate;
+ if(__pPm->GetWholeDayCount() == 0)
+ {
+ bNoevent = true;
+ }
+ else
+ {
+ startDate = __pPm->GetDateTimeFromGroupIndex(0);
+ }
DateTime minRange = __pPm->GetViewMinRange();
minRange.AddMonths(PREVIOUS_DATE);
DateTime minDateTime = Calendarbook::GetMinDateTime();
__pPm->SetViewRange(minRange, __pPm->GetViewMaxRange());
__pGroupedListViewDeleteList->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
- int addedGroupCount = __pPm->GetGroupIndex(startDate);
+ int addedGroupCount = -1;
+ if(bNoevent == false)
+ {
+ addedGroupCount = __pPm->GetGroupIndex(startDate);
+ }
+ else
+ {
+ addedGroupCount = __pPm->GetWholeDayCount();
+ }
for (int i = 0; i < addedGroupCount; ++i)
{
__pGroupedListViewDeleteList->RefreshList(i + TOP_BOTTOM_ITEM_COUNT, -1, LIST_REFRESH_TYPE_ITEM_ADD);
{
if (groupIndex == 0)
{
- DateTime startDate = __pPm->GetDateTimeFromGroupIndex(0);
+ bool bNoevent = false;
+ DateTime startDate;
int initialcount = __pGroupedListViewEventsList->GetGroupCount();
+ if(__pPm->GetWholeDayCount() == 0)
+ {
+ bNoevent = true;
+ }
+ else
+ {
+ startDate = __pPm->GetDateTimeFromGroupIndex(0);
+ }
DateTime minRange = __pPm->GetViewMinRange();
minRange.AddMonths(PREVIOUS_DATE);
DateTime minDateTime = Calendarbook::GetMinDateTime();
__pPm->SetViewType(VIEW_TYPE_LIST);
__pPm->SetViewRange(minRange, __pPm->GetViewMaxRange());
- int addedGroupCount = __pPm->GetGroupIndex(startDate);
+ int addedGroupCount = -1;
+ if(bNoevent == false)
+ {
+ addedGroupCount = __pPm->GetGroupIndex(startDate);
+ }
+ else
+ {
+ addedGroupCount = __pPm->GetWholeDayCount();
+ }
__pGroupedListViewEventsList->RefreshList(0, 0, LIST_REFRESH_TYPE_ITEM_MODIFY);
for (int i = 0; i < addedGroupCount; ++i)
static const int IDA_SETTING_FORM_PARSE_VCS_FILE_COMPLETE = 90001;
static const int H_ITEM_MARGIN = 68;
static const int W_APPROX = 35;
-
+static const int H_LIST_EXPAN_ICON = 72;
+static const int W_LIST_EXPAN_ICON = 72;
class AsyncVcsParser
: public Thread
__pLabelFirstDayOfWeekExpandIcon = new (std::nothrow) Label();
__pLabelFirstDayOfWeekExpandIcon->Construct(Rectangle(itemWidth - __itemHeight * H_ICON_SCALE - W_FIRST_DAY_OF_WEEK_ITEM_ICON_MARGIN,
- Y_FIRST_DAY_OF_WEEK_ITEM_ICON,
- __itemHeight * H_ICON_SCALE,
- __itemHeight * H_ICON_SCALE), L"");
+ (__itemHeight - H_LIST_EXPAN_ICON)/2,
+ W_LIST_EXPAN_ICON,
+ H_LIST_EXPAN_ICON), L"");
__pLabelFirstDayOfWeekExpandIcon->AddTouchEventListener(*this);
Bitmap* pButtonIcon = (__isFirstDayOfWeekSelectionItemExpanded)?ResourceManager::GetBitmapN(IDB_ALL_DAY_EVENT_LIST_EXPAND_OPENED):ResourceManager::GetBitmapN(IDB_ALL_DAY_EVENT_LIST_EXPAND_CLOSED);
if (pButtonIcon != null)