{
bool needToSelectAll = true;
int checkedCount = GetItemCheckedCount();
- int totalFileCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
- if (checkedCount == totalFileCount)
+ if (checkedCount == __itemCount)
{
needToSelectAll = false;
}
if (needToSelectAll == true)
{
- for (int i = 0 ; i < totalFileCount; ++i)
+ for (int i = 0 ; i < __itemCount; ++i)
{
if (__pContentIconListView->IsItemChecked(i) == false)
{
}
else
{
- for (int i = 0 ; i < totalFileCount; ++i)
+ for (int i = 0 ; i < __itemCount; ++i)
{
if (__pContentIconListView->IsItemChecked(i) == true)
{
if (needToSelectAll == true)
{
tempString.Format(LENGTH_COUNT_LABEL, L"%ls (%d)",
- ResourceManager::GetString(L"IDS_COM_BODY_SELECTED").GetPointer(), totalFileCount);
+ ResourceManager::GetString(L"IDS_COM_BODY_SELECTED").GetPointer(), __itemCount);
}
else
{