{
__pPopUp->Initialize();
__pPopUp->SetEventListner(this);
- AddControl(*__pPopUp);
+ AddControl(__pPopUp);
}
__pPlayButton->Construct(Rectangle(clientRect.width / 2 - W_PLAY_BUTTON / 2,
clientRect.height / 2 - W_PLAY_BUTTON / 2, W_PLAY_BUTTON, H_PLAY_BUTTON));
__pPlayButton->SetActionId(IDA_CONTORL_BUTTON_PLAY);
- AddControl(*__pPlayButton);
+ AddControl(__pPlayButton);
Bitmap* pNormalBackgroundBitmap = ResourceManager::GetBitmapN(IDB_IMAGE_VIEWERFORM_BUTTON_PLAY);
__pPlayButton->SetNormalBackgroundBitmap(*pNormalBackgroundBitmap);
__pPlayButton->Construct(Rectangle(clientRect.width / 2 - W_PLAY_BUTTON / 2,
clientRect.height / 2 - W_PLAY_BUTTON / 2, W_PLAY_BUTTON, H_PLAY_BUTTON));
__pPlayButton->SetActionId(IDA_CONTORL_BUTTON_PLAY);
- AddControl(*__pPlayButton);
+ AddControl(__pPlayButton);
Bitmap* pNormalBackgroundBitmap = ResourceManager::GetBitmapN(IDB_IMAGE_VIEWERFORM_BUTTON_PLAY);
__pPlayButton->SetNormalBackgroundBitmap(*pNormalBackgroundBitmap);
__pDetail_Label = new (std::nothrow) Label();
__pDetail_Label->Construct(RECT_DETAILS_CONTORL_LABEL, ResourceManager::GetString(L"IDS_COM_BODY_DETAILS"));
- __pScrollPanel->AddControl(*__pDetail_Label);
+ __pScrollPanel->AddControl(__pDetail_Label);
__pDetail_Label->SetTextVerticalAlignment(ALIGNMENT_TOP);
__pDetail_Label->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pDetail_Label->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
Rectangle(X_DETAIL_FILEINFO_LABEL,
GAP_H_DETAIL_TEXT * (i + 1) + H_DETAIL_MAIN_TEXT + (H_DETAIL_MAIN_TEXT + H_DETAIL_SUB_TEXT) * i,
clientRect.width - GAP_W_END_OF_LABEL, H_DETAIL_FILEINFO_LABEL), ResourceManager::GetString(arrayId[i]));
- __pScrollPanel->AddControl(*__pDetail_FileInfo_Label[i]);
+ __pScrollPanel->AddControl(__pDetail_FileInfo_Label[i]);
__pDetail_FileInfo_Label[i]->SetTextVerticalAlignment(ALIGNMENT_TOP);
__pDetail_FileInfo_Label[i]->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
clientRect.width - GAP_W_END_OF_LABEL, H_DETAIL_FILEINFO_VALUE_LABEL), L"");
}
- __pScrollPanel->AddControl(*__pDetail_FileInfo_Value_Label[i]);
+ __pScrollPanel->AddControl(__pDetail_FileInfo_Value_Label[i]);
__pDetail_FileInfo_Value_Label[i]->SetTextVerticalAlignment(ALIGNMENT_TOP);
__pDetail_FileInfo_Value_Label[i]->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
delete pIconBackground;
__pRenameButton->SetColor(BUTTON_STATUS_NORMAL, COLOR_HEADER_BUTTON1);
- __pScrollPanel->AddControl(*__pRenameButton);
+ __pScrollPanel->AddControl(__pRenameButton);
- AddControl(*__pScrollPanel);
+ AddControl(__pScrollPanel);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
pCancelButton->SetActionId(IDA_DELETE_POPUP_CANCEL);
pCancelButton->AddActionEventListener(*this);
- __pDeletePopup->AddControl(*pLabel);
- __pDeletePopup->AddControl(*pDeleteButton);
- __pDeletePopup->AddControl(*pCancelButton);
+ __pDeletePopup->AddControl(pLabel);
+ __pDeletePopup->AddControl(pDeleteButton);
+ __pDeletePopup->AddControl(pCancelButton);
}
else
{