if (dynamic_cast<SystemDraw>(&w)) { // Drawing to screen } else { // Drawing to some kind of buffer }
Report message to a moderator