I use custom OnPaint event in a class derived from wxScrolledWindow (also tried with wxControl). I write text onto screen with wxDC function DrawText. I have no problem changing text foreground colour, but changing text background colour I have a problem with. I am setting dc.SetBackgroundMode(wxSOLID), but that doesn't seem to help me. The text I draw onto screen never has any background. Can anyone give me ideas what I might be missing?