X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92a19c2e7757ba742846f83e56356de0a607bdc2..a2d541ca9c552d1a30ba75970968a7a220f4955a:/samples/html/widget/widget.cpp diff --git a/samples/html/widget/widget.cpp b/samples/html/widget/widget.cpp index 7c48e1971a..730f2886dd 100644 --- a/samples/html/widget/widget.cpp +++ b/samples/html/widget/widget.cpp @@ -19,11 +19,11 @@ // for all others, include the necessary headers (this file is usually all you // need because it includes almost all "standard" wxWindows headers #ifndef WX_PRECOMP - #include + #include "wx/wx.h" #endif -#include +#include "wx/html/htmlwin.h" @@ -36,7 +36,7 @@ TAG HANDER FOR 'MYBIND' TAG */ -#include +#include "wx/html/m_templ.h" TAG_HANDLER_BEGIN(MYBIND, "MYBIND") @@ -49,13 +49,14 @@ TAG_HANDLER_BEGIN(MYBIND, "MYBIND") tag.ScanParam(wxT("X"), wxT("%i"), &ax); tag.ScanParam(wxT("Y"), wxT("%i"), &ay); - if (tag.HasParam("FLOAT")) fl = ax; + if (tag.HasParam(wxT("FLOAT"))) + fl = ax; - wnd = new wxTextCtrl( m_WParser -> GetWindow(), -1, tag.GetParam("NAME"), - wxPoint(0,0), wxSize(ax, ay), wxTE_MULTILINE ); - wnd -> Show(TRUE); + wnd = new wxTextCtrl(m_WParser->GetWindow(), -1, tag.GetParam(wxT("NAME")), + wxPoint(0,0), wxSize(ax, ay), wxTE_MULTILINE); + wnd->Show(TRUE); - m_WParser -> OpenContainer() -> InsertCell(new wxHtmlWidgetCell(wnd, fl)); + m_WParser->GetContainer()->InsertCell(new wxHtmlWidgetCell(wnd, fl)); return FALSE; }