wxDC::SetBackgroundMode

void SetBackgroundMode(int mode)

mode may be one of wxSOLID and wxTRANSARENT. This setting determines whether text will be drawn with a background colour or not.