Hi! I hope that I understood you correctly :) You're trying to get the HTML code source of a page displayed in a wxHtmlWindow, right?
True, there seems to be no method to do this directly, but I found a workaround using the wxHtmlWinParser class:
wxHtmlWindow* html = new wxHtmlWindow(this);
html->LoadPage("index.html");
wxHtmlWinParser *parser = w->GetParser();
wxString* source = parser->GetSource();
wxMessageBox(*source);
I checked it and it works for me :)
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |