From: Robin Dunn Date: Tue, 23 Nov 1999 00:01:50 +0000 (+0000) Subject: Now sets the font for newly appended ownerdraw items. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/60c65519d0da34cfd79db5036b554dafb8bc7073 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 --- 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