//Set background bitmap
Label* pKeyBgLbl = static_cast<Label*>(GetControl(IDC_DTMF_KEY_BG_LABEL, true));
- Bitmap* pKeyBgBitmap = AppUtility::GetBitmapFromResourcesN(IDB_KEYPAD_BG, pKeyBgLbl->GetWidth(), pKeyBgLbl->GetHeight());
+ /*Bitmap* pKeyBgBitmap = AppUtility::GetBitmapFromResourcesN(IDB_KEYPAD_BG, pKeyBgLbl->GetWidth(), pKeyBgLbl->GetHeight());
if (pKeyBgBitmap != null)
{
pKeyBgLbl->SetBackgroundBitmap(*pKeyBgBitmap);
delete pKeyBgBitmap;
pKeyBgBitmap = null;
- }
+ }*/
//DTMF Keys panel
Panel* pKeysPanel = new (std::nothrow) Panel();
return E_SUCCESS;
CATCH:
- RemoveAllControls();
+ //RemoveAllControls();
return r;
}
pTextElement->SetFont(*font);
//get dimensions of the text
- Dimension textDimension;
+ FloatDimension textDimension;
font->GetTextExtent(buttonText, buttonText.GetLength(), textDimension);
textDimension.height = textDimension.height + font->GetDescender();
//create enriched text
DtmfKeyPadPanel::OnTerminating(void)
{
result r = E_SUCCESS;
- RemoveAllControls();
+ //RemoveAllControls();
return r;
}