Added SetEncoding

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-12-04 08:26:24 +00:00
parent 1d24c6a3a5
commit 67339f7d9d
2 changed files with 13 additions and 3 deletions

View File

@@ -225,6 +225,7 @@ void wxHtmlListBox::Init()
m_htmlParser = NULL;
m_htmlRendStyle = new wxHtmlListBoxStyle(*this);
m_cache = new wxHtmlListBoxCache;
m_fontEncoding = wxFONTENCODING_ISO8859_1;
}
bool wxHtmlListBox::Create(wxWindow *parent,
@@ -293,7 +294,9 @@ void wxHtmlListBox::CacheItem(size_t n) const
self->m_htmlParser = new wxHtmlWinParser(self);
m_htmlParser->SetDC(new wxClientDC(self));
m_htmlParser->SetFS(&self->m_filesystem);
#if !wxUSE_UNICODE
m_htmlParser->SetInputEncoding(m_fontEncoding);
#endif
// use system's default GUI font by default:
m_htmlParser->SetStandardFonts();
}