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 Use the
{\bf m
\_DC} device context to draw into, don't create wxPaintDC in
31 \helpref{wxWindow::OnEraseBackground
}{wxwindowonerasebackground
},
\helpref{Event handling overview
}{eventhandlingoverview
}
33 \latexignore{\rtfignore{\wxheading{Members
}}}
35 \membersection{wxEraseEvent::wxEraseEvent
}
37 \func{}{wxEraseEvent
}{\param{int
}{id =
0},
\param{wxDC*
}{dc = NULL
}}
41 \membersection{wxEraseEvent::m
\_dc}
45 The device context associated with the erase event.
47 \membersection{wxEraseEvent::GetDC
}\label{wxeraseeventgetdc
}
49 \constfunc{wxDC*
}{GetDC
}{\void}
51 Returns the device context to draw into.