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
This commit is contained in:
@@ -283,6 +283,7 @@ int wxListBox::DoAppend(const wxString& item)
|
|||||||
pNewItem->SetName(item);
|
pNewItem->SetName(item);
|
||||||
m_aItems.Add(pNewItem);
|
m_aItems.Add(pNewItem);
|
||||||
ListBox_SetItemData(GetHwnd(), index, pNewItem);
|
ListBox_SetItemData(GetHwnd(), index, pNewItem);
|
||||||
|
pNewItem->SetFont(GetFont());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user