+wxGenericStaticText::~wxGenericStaticText()
+{
+#if wxUSE_MARKUP
+ delete m_markupText;
+#endif // wxUSE_MARKUP
+}
+
+void wxGenericStaticText::DoDrawLabel(wxDC& dc, const wxRect& rect)
+{
+#if wxUSE_MARKUP
+ if ( m_markupText )
+ m_markupText->Render(dc, rect, wxMarkupText::Render_ShowAccels);
+ else
+#endif // wxUSE_MARKUP
+ dc.DrawLabel(m_label, rect, GetAlignment(), m_mnemonic);
+}
+