Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: xfa/fwl/core/ifwl_listbox.cpp

Issue 2510123002: Remove the CFWL_EventType::DrawItem (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_listbox.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/ifwl_listbox.cpp
diff --git a/xfa/fwl/core/ifwl_listbox.cpp b/xfa/fwl/core/ifwl_listbox.cpp
index 1f5a50c4c899926099b0f518a08cd898fb1351cb..4a8f9395b6f3388ed81c1c453d519370ad4a1fee 100644
--- a/xfa/fwl/core/ifwl_listbox.cpp
+++ b/xfa/fwl/core/ifwl_listbox.cpp
@@ -510,17 +510,8 @@ void IFWL_ListBox::DrawItems(CFX_Graphics* pGraphics,
if (bMultiCol && rtItem.left > m_rtConent.right())
break;
- if (GetStylesEx() & FWL_STYLEEXT_LTB_OwnerDraw) {
- CFWL_EvtLtbDrawItem ev;
- ev.m_pSrcTarget = this;
- ev.m_pGraphics = pGraphics;
- ev.m_matrix = *pMatrix;
- ev.m_index = i;
- ev.m_rect = rtItem;
- DispatchEvent(&ev);
- } else {
+ if (!(GetStylesEx() & FWL_STYLEEXT_LTB_OwnerDraw))
DrawItem(pGraphics, pTheme, pItem, i, rtItem, pMatrix);
- }
}
}
« no previous file with comments | « xfa/fwl/core/ifwl_listbox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698