1 \section{\class{wxEraseEvent
}}\label{wxeraseevent
}
3 An erase event is sent when a window's background needs to be repainted.
5 \wxheading{Derived from
}
7 \helpref{wxEvent
}{wxevent
}\\
8 \helpref{wxObject
}{wxobject
}
10 \wxheading{Include files
}
14 \wxheading{Event table macros
}
16 To process an erase event, use this event handler macro to direct input to a member
17 function that takes a wxEraseEvent argument.
20 \begin{twocollist
}\itemsep=
0pt
21 \twocolitem{{\bf EVT
\_ERASE\_BACKGROUND(func)
}}{Process a wxEVT
\_ERASE\_BACKGROUND event.
}
26 If the
{\bf m
\_DC} member is non-NULL, draw into this device context.
30 \helpref{wxWindow::OnEraseBackground
}{wxwindowonerasebackground
},
\helpref{Event handling overview
}{eventhandlingoverview
}
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxEraseEvent::wxEraseEvent
}
36 \func{}{wxEraseEvent
}{\param{int
}{id =
0},
\param{wxDC*
}{dc = NULL
}}
40 \membersection{wxEraseEvent::m
\_dc}
44 The device context associated with the erase event (may be NULL).
46 \membersection{wxEraseEvent::GetDC
}\label{wxeraseeventgetdc
}
48 \constfunc{wxDC*
}{GetDC
}{\void}
50 Returns the device context to draw into. If this is non-NULL, you should draw
51 into it to perform the erase operation.