Code: Select all
wxString mHtmlPath(wxT("d:\\a.html"));
wxHtmlWindow *mHtml;
// Init......
wxFileInputStream fs(mHtmlPath);
wxTextInputStream tfs(fs);
wxString ret = tfs.ReadLine(), results;
while(!tfs.GetInputStream().Eof()){
results += ret;
ret = tfs.ReadLine();
}
results += ret;
mHtml->SetPage(results);