From 60c65519d0da34cfd79db5036b554dafb8bc7073 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 23 Nov 1999 00:01:50 +0000 Subject: [PATCH] Now sets the font for newly appended ownerdraw items. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index b4a83da00c..93c6f17689 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -283,6 +283,7 @@ int wxListBox::DoAppend(const wxString& item) pNewItem->SetName(item); m_aItems.Add(pNewItem); ListBox_SetItemData(GetHwnd(), index, pNewItem); + pNewItem->SetFont(GetFont()); } #endif -- 2.45.2