void
_CustomListItemImpl::SetNormalItemBackgroundBitmap(const Bitmap& bitmap)
{
- SetBackgroundBitmap(bitmap, TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
+ TableViewItemDrawingStatus status = TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL;\r
+\r
+ if (__pBitmaps[status])\r
+ {\r
+ delete __pBitmaps[status];\r
+ }\r
+\r
+ __pBitmaps[status] = _BitmapImpl::CloneN(bitmap);\r
+\r
+ SetBackgroundBitmap(bitmap, status);\r
return;
}
void
_CustomListItemImpl::SetFocusedItemBackgroundBitmap(const Bitmap& bitmap)
{
- SetBackgroundBitmap(bitmap, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+ TableViewItemDrawingStatus status = TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED;\r
+\r
+ if (__pBitmaps[status])\r
+ {\r
+ delete __pBitmaps[status];\r
+ }\r
+\r
+ __pBitmaps[status] = _BitmapImpl::CloneN(bitmap);\r
+\r
+ SetBackgroundBitmap(bitmap, status);\r
return;
}
void
_CustomListItemImpl::SetHighlightedItemBackgroundBitmap(const Bitmap& bitmap)
{
- SetBackgroundBitmap(bitmap, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
- return;
-}
+ TableViewItemDrawingStatus status = TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED;\r
-void
-_CustomListItemImpl::SetBackgroundBitmap(const Bitmap& bitmap, TableViewItemDrawingStatus status)
-{
if (__pBitmaps[status])
{
- delete __pBitmaps[status];
+ delete __pBitmaps[status];\r
}
__pBitmaps[status] = _BitmapImpl::CloneN(bitmap);
+ SetBackgroundBitmap(bitmap, status);\r
+ return;\r
+}\r
+\r
+void\r
+_CustomListItemImpl::SetBackgroundBitmap(const Bitmap& bitmap, TableViewItemDrawingStatus status)\r
+{\r
if (__pTableViewItemData)
{
bool returnValue = __pTableViewItemData->SetBackgroundBitmap(__pBitmaps[status], status);