case ID_BUTTON:
if (__pPanel != null)
{
- this->RemoveControl(*__pPanel);
+ this->RemoveControl(__pPanel);
}
__pPanel = new (std::nothrow) ScrollPanel();
TryReturn(__pPanel != null, , "Failed to create panel");
r = __pPanel->Construct(Rectangle(0, __panelY, SCREEN_W, GetClientAreaBounds().height - __panelY));
TryReturn(r == E_SUCCESS, , "Failed to construct panel");
- AddControl(*__pPanel);
+ AddControl(__pPanel);
DoRecognizing();
break;
case ID_BUTTON2:
if (__pPanel != null)
{
- this->RemoveControl(*__pPanel);
+ this->RemoveControl(__pPanel);
}
__pPanel = new (std::nothrow) ScrollPanel();
TryReturn(__pPanel != null, , "Failed to create panel");
r = __pPanel->Construct(Rectangle(0, __panelY, SCREEN_W, GetClientAreaBounds().height - __panelY));
TryReturn(r == E_SUCCESS, , "Failed to construct panel");
- AddControl(*__pPanel);
+ AddControl(__pPanel);
DoFaceSimilarity();
break;
delete pBackBitmap;
}
- __pPanel->AddControl(*pLabel);
- __pPanel->AddControl(*pLabe2);
+ __pPanel->AddControl(pLabel);
+ __pPanel->AddControl(pLabe2);
__pPanel->RequestRedraw(true);
Header* pHeader = pForm->GetHeader();
pHeader->SetTitleText(L"FACE RECOGNIZER");
- r = GetAppFrame()->GetFrame()->AddControl(*pForm);
+ r = GetAppFrame()->GetFrame()->AddControl(pForm);
TryReturn(r == E_SUCCESS, false, "Failed to attach FormMgr to the frame");
pForm->Draw();