previous up next     contents index
Next: wxMediaBuffer::OwnCaret Up: wxMediaBuffer: wxObject Previous: wxMediaBuffer::OnFocus

wxMediaBuffer::OnPaint

void OnPaint (Bool before, wxDC *dc, float left, float top, float right, float bottom, float dx,
float dy, int drawCaret)

This overrideable method provides a way to add arbitrary graphics to a buffer's view. OnPaint is called just before and just after every painting of the buffer. before is TRUE when OnPaint is being called just before a painting. The left, top, right, and bottom coordinates specify which region of the buffer is being repainted, in buffer co-ordinates. To get the co-ordinates for dc, you will need to offset these numbers by (dx, dy). See Caret Ownership (section gif) for information about drawCaret.

See also wxMediaBuffer::InvalidateBitmapCache (section gif).



PLT