From dbdd44434fafaf10d3686c62c6ef67d6fb07a277 Mon Sep 17 00:00:00 2001 From: HyukSoon Choi Date: Sun, 14 Apr 2013 16:27:13 +0900 Subject: [PATCH] Delete new gallery control Change-Id: I2c707d79f5a6e23749d7ef780fa0b6ca0a483965 Signed-off-by: HyukSoon Choi --- src/IvImageViewerForm.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/IvImageViewerForm.cpp b/src/IvImageViewerForm.cpp index 7298489..4eff1d8 100644 --- a/src/IvImageViewerForm.cpp +++ b/src/IvImageViewerForm.cpp @@ -559,14 +559,12 @@ ImageViewerForm::CreateGallery(void) Rectangle clientRect = GetClientAreaBounds(); Rectangle rect = GetBounds(); - __pGallery = new (std::nothrow) Gallery(); - __pGallery->Construct(Rectangle(0, clientRect.y, rect.width, rect.height)); - __pGallery->SetName(L"GalleryControl"); + __pGallery = static_cast(GetControl(L"IDC_GALLERY")); + AppAssert(__pGallery); + __pGallery->SetItemProvider(*this); __pGallery->AddGalleryEventListener(*this); __pGallery->SetBackgroundColor(COLOR_GALLERY_BG); - AddControl(*__pGallery); - __pGallery->SetTextOfEmptyGallery(ResourceManager::GetString(L"IDS_COM_BODY_LOADING")); SlideShowTransitionEffect effect = __pPresentationModel->GetTransitionEffectOfSlideShow(); -- 2.7.4