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{Event table macros
}
12 To process an erase event, use this event handler macro to direct input to a member
13 function that takes a wxEraseEvent argument.
16 \begin{twocollist
}\itemsep=
0pt
17 \twocolitem{{\bf EVT
\_ERASE(func)
}}{Process a wxEVT
\_ERASE\_BACKGROUND event.
}
22 If the
{\bf m
\_DC} member is non-NULL, draw into this device context.
26 \helpref{wxWindow::OnEraseBackground
}{wxwindowonerasebackground
},
\helpref{Event handling overview
}{eventhandlingoverview
}
28 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{wxEraseEvent::wxEraseEvent
}
32 \func{}{wxEraseEvent
}{\param{int
}{id =
0},
\param{wxDC*
}{dc = NULL
}}
36 \membersection{wxEraseEvent::m
\_dc}
40 The device context associated with the erase event (may be NULL).
42 \membersection{wxEraseEvent::GetDC
}\label{wxeraseeventgetdc
}
44 \constfunc{wxDC*
}{GetDC
}{\void}
46 Returns the device context to draw into. If this is non-NULL, you should draw
47 into it to perform the erase operation.