TryCatch(!IsFailed(r), "CreateItem failed with %s",GetErrorMessage(r));
// if(__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
// r = pItem->AddElement(Rectangle(104, 70, GetClientAreaBounds().width - 108 - 32 - bookmarkBtnWidth - 32, 48), IDA_FORMAT_URL, pHistory->GetHistoryUrl(),32,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true);
// else
TryCatch(!IsFailed(r), "CreateItem failed with %s",GetErrorMessage(r));
// if(__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
// r = pItem->AddElement(Rectangle(104, 70, GetClientAreaBounds().width - 108 - 32 - bookmarkBtnWidth - 32, 48), IDA_FORMAT_URL, pHistory->GetHistoryUrl(),32,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true);
// else