I am wondering if this rings a bell with anybody. GetLexer returns '0' after SetLexer(3) and there is no syntax highlighting after these steps: m_stc->SetLexer(wxSTC_LEX_CPP); m_stc->StyleSetForeground(wxSTC_C_DEFAULT, wxColour(20, 20, 200)); m_stc->StyleSetForeground(wxSTC_C_COMMENT, wxColour(150, ...